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