I added a clean_username method to the UserRegistrationForm in chapter 7, to ensure that users cannot create a username with 'follow' or different variant thereof.
I also created a User = get_user_model() variable at the top of the file as in the original code User is not defined, which is mentioned in this issue #16.
I added a
clean_username
method to theUserRegistrationForm
in chapter 7, to ensure that users cannot create a username with 'follow' or different variant thereof.I also created a
User = get_user_model()
variable at the top of the file as in the original codeUser
is not defined, which is mentioned in this issue #16.