Commit 7bf96a88 authored by Samuel GAIST's avatar Samuel GAIST

Merge branch '568_crash_new_supervisor_sign_up' into 'django3_migration'

Fix supervisor crash on sign-up

See merge request !372
parents 4200e85e 5f35768f
Pipeline #42863 passed with stage
in 16 minutes and 34 seconds
......@@ -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.")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment