ernestophone.ens.fr/gestion/forms.py

17 lines
520 B
Python
Raw Normal View History

2015-03-17 19:03:51 +01:00
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):
2015-03-28 19:18:14 +01:00
validation = forms.CharField(max_length=100)
2015-03-17 19:03:51 +01:00
class Meta:
model = ErnestoUser
fields = ("phone", "instru", )