fixes for value_decorator
This commit is contained in:
parent
f7e22d2b8b
commit
bc92f78afb
2 changed files with 17 additions and 2 deletions
|
|
@ -1449,9 +1449,9 @@ class SequenceField(BaseField):
|
|||
data = collection.find_one({"_id": sequence_id})
|
||||
|
||||
if data:
|
||||
return data['next']+1
|
||||
return self.value_decorator(data['next']+1)
|
||||
|
||||
return 1
|
||||
return self.value_decorator(1)
|
||||
|
||||
def get_sequence_name(self):
|
||||
if self.sequence_name:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue