Merge pull request #344 from matchbox/complex-change-tracking

Remove custom change tracking for ComplexBaseFields just use BaseField's one
This commit is contained in:
Ross Lawley
2013-06-04 02:54:59 -07:00
2 changed files with 21 additions and 6 deletions

View File

@@ -205,12 +205,6 @@ class ComplexBaseField(BaseField):
return value
def __set__(self, instance, value):
"""Descriptor for assigning a value to a field in a document.
"""
instance._data[self.name] = value
instance._mark_as_changed(self.name)
def to_python(self, value):
"""Convert a MongoDB-compatible type to a Python type.
"""