2👍
If you’re calling is_valid()
on an UserForm
object it will run clean_username
and this will always throw a ValidationError
if a User
object with the given username
already exists / was created before. (This means you cannot do something like ‘editing’ an existing user with it)
Source:stackexchange.com