summaryrefslogtreecommitdiff
path: root/tests/auth_tests/models/invalid_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth_tests/models/invalid_models.py')
-rw-r--r--tests/auth_tests/models/invalid_models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auth_tests/models/invalid_models.py b/tests/auth_tests/models/invalid_models.py
index 123ed4d865..280c690faa 100644
--- a/tests/auth_tests/models/invalid_models.py
+++ b/tests/auth_tests/models/invalid_models.py
@@ -9,12 +9,13 @@ class CustomUserNonUniqueUsername(AbstractBaseUser):
This model is not invalid if it is used with a custom authentication
backend which supports non-unique usernames.
"""
+
username = models.CharField(max_length=30)
email = models.EmailField(blank=True)
is_staff = models.BooleanField(default=False)
is_superuser = models.BooleanField(default=False)
- USERNAME_FIELD = 'username'
- REQUIRED_FIELDS = ['email']
+ USERNAME_FIELD = "username"
+ REQUIRED_FIELDS = ["email"]
objects = UserManager()