Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
5f35768f
Commit
5f35768f
authored
Sep 17, 2020
by
Flavio TARSETTI
Browse files
[ui][registration][forms] fix supervisor crash on sign-up
Fixes
#568
parent
4200e85e
Pipeline
#42854
passed with stage
in 16 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/web/ui/registration/forms.py
View file @
5f35768f
...
...
@@ -433,7 +433,7 @@ class RegistrationSupervisorForm(forms.Form):
"""
username
=
self
.
cleaned_data
[
"username"
]
if
User
.
objects
.
get
(
username__iexact
=
username
).
exists
():
if
User
.
objects
.
filter
(
username__iexact
=
username
).
exists
():
raise
forms
.
ValidationError
(
_
(
u
"This username is already taken. Please choose another."
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment