Empty dict value should always be an empty dictionary

The client should not detect as changed a Dict field with None as value.

issue4231
review11531002
This commit is contained in:
Cédric Krier committed 2014-10-06 22:29:46 +02:00
1 parent a60fb08437
commit c09a12e02f
1 file changed
+3
@@ -884,6 +884,9 @@ class DictField(Field):
_default = {}
def get(self, record):
return super(DictField, self).get(record) or self._default
def get_client(self, record):
return super(DictField, self).get_client(record) or self._default