Merge branch 'master' of github.com:MongoEngine/mongoengine
This commit is contained in:
commit
7a230f1693
@ -1288,7 +1288,7 @@ class SequenceField(IntField):
|
|||||||
instance._data[self.name] = value
|
instance._data[self.name] = value
|
||||||
instance._mark_as_changed(self.name)
|
instance._mark_as_changed(self.name)
|
||||||
|
|
||||||
return value
|
return int(value) if value else None
|
||||||
|
|
||||||
def __set__(self, instance, value):
|
def __set__(self, instance, value):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user