Merge branch 'master' into 0.7
Conflicts: mongoengine/base.py
This commit is contained in:
commit
52d80ac23c
12 changed files with 163 additions and 53 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue