diff --git a/django-testauth/auth.py b/django-testauth/auth.py index 47d87f5..01b85db 100644 --- a/django-testauth/auth.py +++ b/django-testauth/auth.py @@ -40,7 +40,7 @@ class TESTAuthBackend: user.set_unusable_password() # disable login through Model backend if email: user.email = email - if name + if name: user.first_name = name user.save()