mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Merge pull request #1523 from sigilion/master
Fix dict_keys equality test for python 3.
This commit is contained in:
commit
93b9245b87
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user