diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-02-07 23:36:39 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-02-07 23:36:40 +0000 |
commit | a357f4cf5bda6af4d05b48bacb9a39a0c7489a4d (patch) | |
tree | d0e985bcbbf2267e089506195016b90208bbd832 /core/views/user_registration.py | |
parent | 06b81ea825bef39509d7ae9c1cf3f92fd9b60616 (diff) | |
download | troggle-a357f4cf5bda6af4d05b48bacb9a39a0c7489a4d.tar.gz troggle-a357f4cf5bda6af4d05b48bacb9a39a0c7489a4d.tar.bz2 troggle-a357f4cf5bda6af4d05b48bacb9a39a0c7489a4d.zip |
fix error msg
Diffstat (limited to 'core/views/user_registration.py')
-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:
|