From b39b9367fc95ec6581c74ab8a5651561360174b9 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Thu, 28 Oct 2010 10:34:04 -0400 Subject: [PATCH] =?utf8?q?Enlev=C3=A9=20le=20crit=C3=A8re=20"th=C3=A9matique?= =?utf8?q?"=20de=20la=20recherche=20dans=20les=20sites.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- auf_savoirs_en_partage/sitotheque/forms.py | 4 +++- auf_savoirs_en_partage/sitotheque/views.py | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/auf_savoirs_en_partage/sitotheque/forms.py b/auf_savoirs_en_partage/sitotheque/forms.py index 2f4869f..423188e 100644 --- a/auf_savoirs_en_partage/sitotheque/forms.py +++ b/auf_savoirs_en_partage/sitotheque/forms.py @@ -5,6 +5,8 @@ from models import * class SiteSearchForm(forms.Form): mots_cles = forms.CharField (required = False, label="Mots-clés") discipline = forms.ModelChoiceField(queryset=Discipline.objects.all(), required=False, label="Discipline", empty_label="Tous") - thematique = forms.ModelChoiceField(queryset=Thematique.objects.all(), required=False, label="Thématique", empty_label="Tous") + + # On ne veut pas la thématique pour l'instant + # thematique = forms.ModelChoiceField(queryset=Thematique.objects.all(), required=False, label="Thématique", empty_label="Tous") pays = forms.ModelChoiceField(queryset=Pays.objects.all(), required=False, label="Pays", empty_label="Tous") diff --git a/auf_savoirs_en_partage/sitotheque/views.py b/auf_savoirs_en_partage/sitotheque/views.py index 75bc0aa..687a084 100644 --- a/auf_savoirs_en_partage/sitotheque/views.py +++ b/auf_savoirs_en_partage/sitotheque/views.py @@ -18,9 +18,11 @@ def search_queryset(request): discipline = simpleForm.cleaned_data["discipline"] if discipline: list = list.filter(discipline=discipline) - thematique = simpleForm.cleaned_data["thematique"] - if thematique: - list = list.filter(thematique=thematique) + + # XXX: On ne veut pas chercher par thématique pour l'instant + # thematique = simpleForm.cleaned_data["thematique"] + # if thematique: + # list = list.filter(thematique=thematique) mots_cles = simpleForm.cleaned_data["mots_cles"] if mots_cles: -- 1.7.10.4