ernestophone.ens.fr/gestion/forms.py
2015-03-29 17:50:31 +02:00

15 lines
547 B
Python

from django import forms
from gestion.models import ErnestoUser
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class RegistrationFormUser(UserCreationForm):
class Meta:
model = User
fields = ('username', 'first_name', 'last_name', 'password1', 'password2', 'email',)
class InscriptionMembreForm(forms.ModelForm):
validation = forms.CharField(max_length=100, widget=forms.PasswordInput)
class Meta:
model = ErnestoUser
fields = ("phone", "instru", )