summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auth_tests/test_checks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auth_tests/test_checks.py b/tests/auth_tests/test_checks.py
index dbcfefcbb7..cfaa4063f8 100644
--- a/tests/auth_tests/test_checks.py
+++ b/tests/auth_tests/test_checks.py
@@ -49,6 +49,10 @@ class UserModelChecksTests(SimpleTestCase):
checks.Error(
"The field named as the 'USERNAME_FIELD' for a custom user model "
"must not be included in 'REQUIRED_FIELDS'.",
+ hint=(
+ "The 'USERNAME_FIELD' is currently set to 'username', you "
+ "should remove 'username' from the 'REQUIRED_FIELDS'."
+ ),
obj=CustomUserBadRequiredFields,
id='auth.E002',
),