mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
Fix error messages dict in user form
This commit is contained in:
parent
c9eef0820d
commit
8839079282
|
@ -30,7 +30,7 @@ class UserAdminCreationForm(admin_forms.UserCreationForm):
|
|||
fields = ("email",)
|
||||
field_classes = {"email": EmailField}
|
||||
error_messages = {
|
||||
"username": {"unique": _("This email has already been taken.")}
|
||||
"email": {"unique": _("This email has already been taken.")}
|
||||
}
|
||||
{%- else %}
|
||||
error_messages = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user