14 lines
470 B
Python
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", )
|