[Answered ]-Why I get three password fields when I define my custom registration form in Django?

2👍

I guess it is because you are defining a new password field. your fields in class Meta should be as follows:

class Meta:
        model=User
        fields=('username','email','password1','password2')

In this case, you are inheriting the fields from UserCreationForm.

Leave a comment