Merge branch 'master' into 0.7
Conflicts: mongoengine/base.py
This commit is contained in:
@@ -1333,7 +1333,7 @@ class UUIDField(BaseField):
|
||||
super(UUIDField, self).__init__(**kwargs)
|
||||
|
||||
def to_python(self, value):
|
||||
if not self.binary:
|
||||
if not self._binary:
|
||||
if not isinstance(value, basestring):
|
||||
value = unicode(value)
|
||||
return uuid.UUID(value)
|
||||
|
||||
Reference in New Issue
Block a user