mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 13:29:16 +02:00
Fixed broken import
This commit is contained in:
parent
e3e0a2eaf4
commit
7b0148a533
1 changed files with 2 additions and 2 deletions
|
@ -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"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue