Initial commit
This commit is contained in:
10
account/forms.py
Normal file
10
account/forms.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django import forms
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
from .models import SiteUser
|
||||
|
||||
|
||||
class SiteUserForm(UserCreationForm):
|
||||
class Meta(UserCreationForm.Meta):
|
||||
model = SiteUser
|
||||
fields = ('name', 'surname', 'email', 'phone')
|
||||
error_css_class = 'error'
|
||||
Reference in New Issue
Block a user