From 39f89a21b6024edf9af085809efb4e134bab89c9 Mon Sep 17 00:00:00 2001 From: Dalahro Date: Tue, 5 Jul 2016 18:31:06 +0200 Subject: [PATCH] Oops, la recherche marche maintenant --- search/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/views.py b/search/views.py index b608885a..daf12f60 100644 --- a/search/views.py +++ b/search/views.py @@ -23,7 +23,7 @@ def search_result(search, type): date_fin = None states=[] co=[] - aff=[0,1,2,3,4] + aff=['0','1','2','3','4'] if(type): aff = search.cleaned_data['affichage'] co = search.cleaned_data['connexion'] @@ -32,7 +32,7 @@ def search_result(search, type): date_fin = search.cleaned_data['date_fin'] date_query = Q() if aff==[]: - aff = [0,1,2,3,4] + aff = ['0','1','2','3','4'] if date_deb != None: date_query = date_query & Q(date__gte=date_deb) if date_fin != None: