Add value_decorator into SequenceField

Allows post processing of the calculated counter value.
This commit is contained in:
Ross Lawley
2012-11-07 13:20:34 +00:00
parent 1986e82783
commit 99fe1da345
4 changed files with 50 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ Changelog
Changes in 0.8
==============
- Updated SequenceFields to allow post processing of the calculated counter value (MongoEngine/mongoengine#141)
- Added clean method to documents for pre validation data cleaning (MongoEngine/mongoengine#60)
- Added support setting for read prefrence at a query level (MongoEngine/mongoengine#157)
- Added _instance to EmbeddedDocuments pointing to the parent (MongoEngine/mongoengine#139)

View File

@@ -57,6 +57,13 @@ you will need to declare :attr:`allow_inheritance` in the meta data like so:
meta = {'allow_inheritance': True}
SequenceFields
--------------
:class:`~mongoengine.fields.SequenceField`s now inherit from `BaseField` to
allow flexible storage of the calculated value. As such MIN and MAX settings
are no longer handled.
0.6 to 0.7
==========