diff options
| author | Ian Leith | 2014-04-11 05:49:49 +0100 |
|---|---|---|
| committer | Ian Leith | 2014-04-11 05:49:49 +0100 |
| commit | 613df5c6501f715c0775229f34fcba9f4291c05d (patch) | |
| tree | 6c5e296857dada32c89667246a3b4e89c9d54361 /rest_framework/utils | |
| parent | 8bd5e7e612e499753dcffb3cfc10abd410d438a2 (diff) | |
| download | django-rest-framework-613df5c6501f715c0775229f34fcba9f4291c05d.tar.bz2 | |
Fix dict_keys equality test for python 3.
Diffstat (limited to 'rest_framework/utils')
| -rw-r--r-- | rest_framework/utils/mediatypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/utils/mediatypes.py b/rest_framework/utils/mediatypes.py index c09c2933..92f99efd 100644 --- a/rest_framework/utils/mediatypes.py +++ b/rest_framework/utils/mediatypes.py @@ -74,7 +74,7 @@ class _MediaType(object): return 0 elif self.sub_type == '*': return 1 - elif not self.params or self.params.keys() == ['q']: + elif not self.params or list(self.params.keys()) == ['q']: return 2 return 3 |
