fixes for value_decorator

This commit is contained in:
Wilson Júnior 2013-05-16 13:12:49 -03:00
commit bc92f78afb
2 changed files with 17 additions and 2 deletions

View file

@ -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: