fix pep8 issues because of new pep8 version

Change-Id: I4740c5fc1b55d8f6b809faf2fd5248965e6f4e89
This commit is contained in:
Adrian Turjak 2019-01-31 14:57:07 +13:00
parent fef06515c9
commit f5a76ce35a

View File

@ -200,7 +200,7 @@ def create_task_hash(task_type, action_list):
hashable_list.append(
action['serializer'].validated_data[field])
except KeyError:
if field is "username" and settings.USERNAME_IS_EMAIL:
if field == "username" and settings.USERNAME_IS_EMAIL:
continue
else:
raise