diff options
| author | aryan <aryan@Aryans-MacBook-Pro.local> | 2020-02-20 23:46:59 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-02-26 08:40:36 +0100 |
| commit | fba5d3b6e63fe4a07b1aa133186f997eeebf9aeb (patch) | |
| tree | 0ff08cec7db38b85efcc0a5510959acccf6f2308 /tests/auth_tests/test_checks.py | |
| parent | 5637933268af9a7fbf69d162d686a9929903ff47 (diff) | |
Fixed #31289 -- Added hint for USERNAME_FIELD/REQUIRED_FIELDS system check.
Diffstat (limited to 'tests/auth_tests/test_checks.py')
| -rw-r--r-- | tests/auth_tests/test_checks.py | 4 |
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', ), |
