This commit is contained in:
Alejandro Franco 2024-04-30 23:20:15 -06:00
parent 6b5635d19b
commit 79e82d9cdf

View File

@ -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):