mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-29 12:23:43 +03:00
Merge pull request #118 from mdentremont/topic/py3-fix
Alter a statement to make it python3 compatible
This commit is contained in:
commit
315f6f2844
|
@ -49,7 +49,7 @@ class BaseAPITestCase(object):
|
|||
|
||||
self.response = request_func(*args, **kwargs)
|
||||
is_json = bool(
|
||||
filter(lambda x: 'json' in x, self.response._headers['content-type']))
|
||||
[x for x in self.response._headers['content-type'] if 'json' in x])
|
||||
if is_json and self.response.content:
|
||||
self.response.json = json.loads(self.response.content)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user