2f4869fe8c4273bb7f7129a307ac04adfaa702eb
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / sitotheque / forms.py
1 # -*- encoding: utf-8 -*-
2 from django import forms
3 from models import *
4
5 class SiteSearchForm(forms.Form):
6 mots_cles = forms.CharField (required = False, label="Mots-clés")
7 discipline = forms.ModelChoiceField(queryset=Discipline.objects.all(), required=False, label="Discipline", empty_label="Tous")
8 thematique = forms.ModelChoiceField(queryset=Thematique.objects.all(), required=False, label="Thématique", empty_label="Tous")
9 pays = forms.ModelChoiceField(queryset=Pays.objects.all(), required=False, label="Pays", empty_label="Tous")
10