mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 03:19:24 +02:00
Lint
This commit is contained in:
parent
8febad976d
commit
e7e3df0422
6 changed files with 107 additions and 99 deletions
|
@ -69,7 +69,7 @@ class OpenIdConnectBackend(ModelBackend):
|
|||
# Overwrite first_name and last_name if not empty string
|
||||
for key, value in kwargs.items():
|
||||
# Check if the key is not first_name or last_name or value is not empty string
|
||||
if key not in ['first_name', 'last_name'] or value:
|
||||
if key not in ["first_name", "last_name"] or value:
|
||||
setattr(user, key, value)
|
||||
user.save()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue