Skip to content
Snippets Groups Projects
Verified Commit 7b0148a5 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed broken import

parent e3e0a2ea
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ class MyUserCreationForm(UserCreationForm):
def clean_username(self):
username = self.cleaned_data["username"]
try:
User.objects.get(username=username)
except User.DoesNotExist:
models.User.objects.get(username=username)
except models.User.DoesNotExist:
return username
raise forms.ValidationError(self.error_messages["duplicate_username"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment