patch_list doesn't send kwargs to obj_create #417

Open
ipmb opened this Issue Mar 24, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

ipmb commented Mar 24, 2012

The resource_uri's passed to patch_list should have kwargs stripped out of them and sent to obj_create.

https://github.com/toastdriven/django-tastypie/blob/4e78cf2dd9df3786c257e490fefdeaa5a6423d64/tastypie/resources.py#L1291-1297

This isn't an issue with default resource_uri's (the only data is a bad PK), but with custom resource_uri's there can be important data that isn't passed along.

It seems like the best thing to do would be to split out the urlresolver in get_via_uri into something like kwargs_for_uri that can be re-used here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment