mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 00:13:45 +00:00
Ajoute des models form
This commit is contained in:
parent
ccc23ac39f
commit
b64b265b63
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