mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Fix dict_keys equality test for python 3.
This commit is contained in:
parent
8bd5e7e612
commit
613df5c650
|
@ -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