8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +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 Meta:
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 Meta: