11 lines
340 B
Python
11 lines
340 B
Python
from django.contrib.auth.forms import UserCreationForm
|
|
from django import forms
|
|
|
|
class SignUpForm(UserCreationForm):
|
|
class Meta(UserCreationForm.Meta):
|
|
fields = ("username", "email")
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super(SignUpForm, self).__init__(*args, **kwargs)
|
|
self.fields['email'].required = True
|