forms.py 249 B

123456789
  1. from django import forms
  2. from django.contrib.auth.forms import UserCreationForm
  3. from .models import CustomUser
  4. class RegisterForm(UserCreationForm):
  5. class Meta:
  6. model = CustomUser
  7. fields = ["username", "password1", "password2"]