mirror of
https://github.com/enpaul/peewee-plus.git
synced 2024-12-22 15:53:29 +00:00
Fix using dict constructor instead of literal in JSON field
This commit is contained in:
parent
a753b6271a
commit
b2ed7546fd
@ -254,8 +254,8 @@ class JSONField(peewee.TextField):
|
||||
**kwargs,
|
||||
):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.dump_params = dump_params or dict()
|
||||
self.load_params = load_params or dict()
|
||||
self.dump_params = dump_params or {}
|
||||
self.load_params = load_params or {}
|
||||
|
||||
def db_value(self, value: Any) -> str:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user