You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
359 B

  1. from django import forms
  2. from django.contrib.auth.forms import UserCreationForm
  3. from django.contrib.auth import get_user_model
  4. User = get_user_model()
  5. class SignupForm(UserCreationForm):
  6. email = forms.EmailField(max_length=200, help_text='Required')
  7. class Meta:
  8. model = User
  9. fields = ('username', 'email', 'password1', 'password2')