Merge branch 'master' of github.com:MongoEngine/mongoengine
This commit is contained in:
commit
7a230f1693
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue