Sith/core/forms.py

10 lines
265 B
Python
Raw Normal View History

2015-11-18 08:44:06 +00:00
from django.contrib.auth.forms import UserCreationForm
from .models import User
class RegisteringForm(UserCreationForm):
error_css_class = 'error'
required_css_class = 'required'
class Meta:
model = User
fields = ('username', 'email',)