mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-21 11:22:34 +03:00
Fix
This commit is contained in:
parent
6b5635d19b
commit
79e82d9cdf
|
@ -27,11 +27,9 @@ class UserAdminCreationForm(admin_forms.UserCreationForm):
|
|||
error_messages = {
|
||||
"email": {"unique": _("This email has already been taken.")}
|
||||
}
|
||||
{%- else %}
|
||||
error_messages = {
|
||||
"username": {"unique": _("This username has already been taken.")},
|
||||
}
|
||||
{%- endif %}
|
||||
|
||||
|
||||
class UserSignupForm(SignupForm):
|
||||
|
|
Loading…
Reference in New Issue
Block a user