class PersonneForm(forms.ModelForm):
class Meta:
- model = Personne
- fields = ('nom', 'prenom', 'courriel', 'genre')
+ model = Utilisateur
+ fields = ('nom', 'prenom', 'courriel', 'password', 'genre')
class ChercheurForm(forms.ModelForm):
class Meta:
model = Chercheur
fields = ('pays', 'groupes')
+
class EtablissementForm(forms.ModelForm):
class Meta:
model = Chercheur
salutation = models.CharField(max_length=128, null = True, blank = True)
nom = models.CharField(max_length=255)
prenom = models.CharField(max_length=128, verbose_name = 'Prénom')
- courriel = models.CharField(max_length=128, blank = True)
+ courriel = models.CharField(max_length=128)
fonction = models.CharField(max_length=128, null = True, blank = True)
sousfonction = models.CharField(max_length=128, null = True, blank = True,
verbose_name = 'Sous-fonction')