mirror of
https://github.com/enpaul/peewee-plus.git
synced 2024-11-22 14:36:50 +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,
|
**kwargs,
|
||||||
):
|
):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.dump_params = dump_params or dict()
|
self.dump_params = dump_params or {}
|
||||||
self.load_params = load_params or dict()
|
self.load_params = load_params or {}
|
||||||
|
|
||||||
def db_value(self, value: Any) -> str:
|
def db_value(self, value: Any) -> str:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user