From: mathieu Date: Tue, 3 May 2016 06:37:22 +0000 (+0200) Subject: Fix filter physical format X-Git-Tag: 1.6.2^2~15^2~5^2^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=10466de1d6e184a445d8c1c1b79f21420dbce177;p=telemeta.git Fix filter physical format --- diff --git a/telemeta/forms/haystack_form.py b/telemeta/forms/haystack_form.py index de022559..cb6e61f8 100644 --- a/telemeta/forms/haystack_form.py +++ b/telemeta/forms/haystack_form.py @@ -205,8 +205,7 @@ class HayAdvanceForm(SearchForm): if self.cleaned_data.get('ethnic_group') != '': sqs = sqs.filter(ethnic_group__contains=self.cleaned_data['ethnic_group']) - if self.cleaned_data.get('instruments'):# - print(self.filterInstru(self.cleaned_data['instruments'])) + if self.cleaned_data.get('instruments'): sqs = sqs.filter(self.filterInstru(self.cleaned_data['instruments'])) if self.cleaned_data.get('collectors'): @@ -245,7 +244,7 @@ class HayAdvanceForm(SearchForm): sqs = sqs.filter(recording_context=self.cleaned_data['recording_context']) if self.cleaned_data['physical_format']: - if self.cleaned_data.get('physical_formate') != '': + if self.cleaned_data.get('physical_format') != '': sqs = sqs.filter(physical_format=self.cleaned_data['physical_format']) return sqs @@ -261,5 +260,4 @@ def getclosebracket(tab): par -= 1 if par !=0: index+= 1 - return index if par == 0 else -1 -# \ No newline at end of file + return index if par == 0 else -1 \ No newline at end of file