stages/user_write: fix formatting

This commit is contained in:
Jens Langhammer 2020-09-18 18:41:11 +02:00
parent d6cc6770b8
commit 60739e620e
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ class UserWriteStageView(StageView):
# Before we change anything, check if the user is the same as in the request # Before we change anything, check if the user is the same as in the request
# and we're updating a password. In that case we need to update the session hash # and we're updating a password. In that case we need to update the session hash
should_update_seesion = False should_update_seesion = False
if any(["password" in x for x in data.keys()]) and self.request.user.pk == user.pk: if (
any(["password" in x for x in data.keys()])
and self.request.user.pk == user.pk
):
should_update_seesion = True should_update_seesion = True
for key, value in data.items(): for key, value in data.items():
setter_name = f"set_{key}" setter_name = f"set_{key}"