mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Ajoute des models form
This commit is contained in:
parent
6e152bc027
commit
879ee4763b
1 changed files with 16 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue