aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/mixins.py
diff options
context:
space:
mode:
authorTom Christie2012-01-28 19:06:40 +0000
committerTom Christie2012-01-28 19:06:40 +0000
commitc0674e36d498b7b727e3d5a260b5cdf4104b4d26 (patch)
tree3b39223ec9116a00b6f312d87d500c0481cce074 /djangorestframework/mixins.py
parent765ec0b76ea22c857190ee6a25e9e6615e5b0c5e (diff)
downloaddjango-rest-framework-c0674e36d498b7b727e3d5a260b5cdf4104b4d26.tar.bz2
Drop implicit 'pk' on last arg in urlconf. (Too magical).
Diffstat (limited to 'djangorestframework/mixins.py')
-rw-r--r--djangorestframework/mixins.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py
index 7f0870f8..2ea5e840 100644
--- a/djangorestframework/mixins.py
+++ b/djangorestframework/mixins.py
@@ -507,11 +507,6 @@ class ModelMixin(object):
if BaseRenderer._FORMAT_QUERY_PARAM in tmp:
del tmp[BaseRenderer._FORMAT_QUERY_PARAM]
- if args:
- # If we have any no kwargs then assume the last arg represents the
- # primrary key. Otherwise assume the kwargs uniquely identify the
- # model.
- tmp.update({'pk': args[-1]})
return Q(**tmp)
def get_instance_data(self, model, content, **kwargs):