Menage dans chercheur/models.py
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / chercheurs / forms.py
CommitLineData
932eef9a
AJ
1# -*- encoding: utf-8 -*-
2from django import forms
3from models import *
4
5class PersonneForm(forms.ModelForm):
6 class Meta:
7 model = Personne
8 fields = ('nom', 'prenom', 'courriel', 'genre')
9
10class ChercheurForm(forms.ModelForm):
11 class Meta:
12 model = Chercheur
7c596de2
AJ
13 fields = ('pays', 'groupes')
14
15class EtablissementForm(forms.ModelForm):
16 class Meta:
17 model = Chercheur
18 fields = ('etablissement',)
19
20class DisciplineForm(forms.ModelForm):
21 class Meta:
22 model = Chercheur
73cabd75 23 fields = ('discipline', 'expertise', 'mots_cles', 'url', 'publication1', 'publication2', 'publication3')