ernestophone.ens.fr/gestion/forms.py
2015-03-17 19:03:51 +01:00

14 lines
470 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):
class Meta:
model = ErnestoUser
fields = ("phone", "instru", )