[Answer]-Django Addform User

1👍

You need to extend the built-in UserCreationForm from django.contrib.auth.forms instead of extending ModelForm.

This way you don’t have to override the save method to set the password, however you’ll need to add the username, password1 and password2 fields to your form, or it won’t pass validation.

Leave a comment