How do I customize the "username already exists" message?

13 views
Skip to first unread message

Tom Tanner

unread,
Dec 4, 2017, 1:21:57 AM12/4/17
to Django users
My `forms.py` has a custom user-creation class...
class RegisterForm(UserCreationForm):
 error_messages
= {
 
"password_mismatch": _("Passwords do not match."),
 
}

Which error message do I need to replace for when the user chooses a username that already exists?
Reply all
Reply to author
Forward
0 new messages