Fix task and model last_change handling

Improve db model index
Improve db model infrastructure
This commit is contained in:
allegroai
2021-01-05 18:17:29 +02:00
parent 29c792d459
commit 59994ccf9c
14 changed files with 80 additions and 35 deletions

View File

@@ -82,7 +82,7 @@ class DictField(fields.BaseField):
"""Cast value to proper collection."""
result = self.get_default_value()
if not values:
if values is None:
return result
if not self.value_types or not isinstance(values, dict):