mitar/django-tastypie-mongoengine — pull request #7 by aparajita (2012-05-11 15:48:44+00:00)
Title: Fixes to embedded document creation

Currently, POSTing to an EmbeddedSortedListResource saves the resource, but then generates an exception because the get_resource_uri fails. This commit does the following to fix that:

- Object is assigned a pk
- api_name is correctly fetched from parent so that _build_reverse_url will work correctly