Skip to content
Snippets Groups Projects
Commit 77d88fdf authored by Art's avatar Art :lizard:
Browse files

Fix the error with nullable email (django.contrib.auth compat).

parent 020f2482
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ def update_user_data(user, surname=None, forename=None, email=None):
assert isinstance(user, get_user_model())
user.first_name = forename or str()
user.last_name = surname or str()
user.email = email or None
user.email = email or ""
user.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment