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.

10 lines
331 B

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