django-tastypie-nonrel
django-tastypie-nonrel copied to clipboard
Subresource PK is being set to its index
Instead of creating resource_uri's of the form: /api/v1/list/4e58386f66d8cd50380000f9/items/1/ It's creating resource_uris for subresources of the form
/api/v1/list/0/items/0/
/api/v1/list/1/items/1/
If that is in deed a bug, switching around the if/else comparison would fix it? https://github.com/andresdouglas/django-tastypie-nonrel/blob/master/tastypie_nonrel/resources.py#L169-173