Closed yunmanger1 closed 10 years ago
What should be a good mapping in your opinion?
I guess IntegerField
would be all right for general use case. But starting from mongoengine 0.8 there is a value_decorator
.
Hm. I am not sure if we can make it automatic. You can always define the mapping manually, like:
sequence_field = tastypie_fields.IntegerField(attribute='sequence_field')
Right! Thanks!
Maybe this should go to documentation. :-)
Mongoengine's SequenceField is not mentioned in https://github.com/wlanslovenija/django-tastypie-mongoengine/blob/066935b7b8bec80b783434342ceab6b23c7b90f4/tastypie_mongoengine/resources.py#L606