Customizing UserCreationForm
UserCreationForm
currently shows quite a lot of extra help text (included by default), which is cluttering our form. We can actually customize UserCreationForm
, which is a big topic on its own. Here, we will simply remove the default help text.
To customize the form, we have to create a new class that extends UserCreationForm
. In /accounts/
, create a new file called forms.py
and fill it in with the following:
from django.contrib.auth.forms import UserCreationForm
class UserCreateForm(UserCreationForm):
def __init__(self, *args, **kwargs):
super(UserCreateForm, self).__init__(*args,
**kwargs)
...