Nicer message when username already exists
This commit is contained in:
parent
e1646adff6
commit
785145e1c1
@ -46,7 +46,7 @@ class UserProfileForm(Form):
|
|||||||
api=api)
|
api=api)
|
||||||
|
|
||||||
if username:
|
if username:
|
||||||
self.username.errors.append('Sorry, username already exists!')
|
self.username.errors.append('Sorry, this username is already taken.')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self.user = user
|
self.user = user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user