forms.py 309 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
from django import forms
from django.contrib.auth.forms import UserCreationForm

from .models import User


class SignUpForm(UserCreationForm):
    email = forms.EmailField(label='Email', max_length=254)

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