8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 15:12:25 +00:00

Ajoute des models form

This commit is contained in:
chirac 2016-06-30 03:46:31 +02:00
parent 6e152bc027
commit 879ee4763b

View file

@ -29,7 +29,22 @@ class School(models.Model):
class UserForm(ModelForm): class UserForm(ModelForm):
class Meta: class Meta:
model = User model = User
fields = ['name','surname','pseudo','email','school','promo','pwd_ssha','pwd_ntlm','state'] fields = '__all__'
class InfoForm(ModelForm):
class Meta:
model = User
fields = ['name','surname','pseudo','email']
class PasswordForm(ModelForm):
class Meta:
model = User
fields = ['pwd_ssha','pwd_ntlm']
class ArchiveForm(ModelForm):
class Meta:
model = User
fields = ['state']
class SchoolForm(ModelForm): class SchoolForm(ModelForm):
class Meta: class Meta: