diff options
-rw-r--r-- | core/views/user_registration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/user_registration.py b/core/views/user_registration.py index 8af197d..88b2fa8 100644 --- a/core/views/user_registration.py +++ b/core/views/user_registration.py @@ -355,7 +355,7 @@ class register_form(forms.Form): # not a model-form, just a form-form users = User.objects.filter(email=email)
if len(users) > 1:
raise ValidationError(
- f"Duplicate email address. Another registered user {users} is already using this email address. Email addresses must be unique as that is how we reset forgotten passwords."
+ f"Duplicate email address. Another registered user {users[0]} is already using this email address. Email addresses must be unique as that is how we reset forgotten passwords."
)
if len(users) == 1:
if users[0].username != un:
|