8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 22:52:26 +00:00

Ajoute des models form

This commit is contained in:
Gabriel Detraz 2016-06-30 03:46:31 +02:00
parent ccc23ac39f
commit b64b265b63

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: