diff options
| author | Tom Christie | 2012-01-28 19:06:40 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-01-28 19:06:40 +0000 |
| commit | c0674e36d498b7b727e3d5a260b5cdf4104b4d26 (patch) | |
| tree | 3b39223ec9116a00b6f312d87d500c0481cce074 /djangorestframework/mixins.py | |
| parent | 765ec0b76ea22c857190ee6a25e9e6615e5b0c5e (diff) | |
| download | django-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.py | 5 |
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): |
