wlanslovenija / django-tastypie-mongoengine

MongoEngine support for django-tastypie.
Other
73 stars 59 forks source link

Fixes ValidationError handling #21

Closed leo-naeka closed 11 years ago

leo-naeka commented 12 years ago

Added a test case and moved mongoengine's ValidationError checks in obj_create() and obj_update rather than in full_hydrate(). Linked to #20.

mitar commented 11 years ago

I have manually added proposed fix in 610b5d808cf0e811651a434318ac10e312585ec7. Can you please update/merge from main repository and prepare pull request for other things you have made in at the same time? Pull request also has ReferencedListField.

BTW, I am not sure if it is really necessary to have ReferencedListField as a special field?

leo-naeka commented 11 years ago

Thanks for your fix which works perfectly. I've removed ReferencedListField from this pull request since it is not related to this issue. My fault. I'll create a new PR for ReferencedListField and close this one.

mitar commented 11 years ago

But please make also a pull request with test cases you have added for this fix.