Fix using dict constructor instead of literal in JSON field

This commit is contained in:
Ethan Paul 2021-11-24 22:53:38 -05:00
parent a753b6271a
commit b2ed7546fd
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF

View File

@ -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: