summaryrefslogtreecommitdiff
path: root/tests/auth_tests/models/is_active.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth_tests/models/is_active.py')
-rw-r--r--tests/auth_tests/models/is_active.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auth_tests/models/is_active.py b/tests/auth_tests/models/is_active.py
index 4c3144ffdc..cc91b8b97e 100644
--- a/tests/auth_tests/models/is_active.py
+++ b/tests/auth_tests/models/is_active.py
@@ -6,10 +6,11 @@ class IsActiveTestUser1(AbstractBaseUser):
"""
This test user class and derivatives test the default is_active behavior
"""
+
username = models.CharField(max_length=30, unique=True)
custom_objects = BaseUserManager()
- USERNAME_FIELD = 'username'
+ USERNAME_FIELD = "username"
# the is_active attr is provided by AbstractBaseUser