mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +00:00
Oops, la recherche marche maintenant
This commit is contained in:
parent
c744dd5992
commit
39f89a21b6
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ def search_result(search, type):
|
||||||
date_fin = None
|
date_fin = None
|
||||||
states=[]
|
states=[]
|
||||||
co=[]
|
co=[]
|
||||||
aff=[0,1,2,3,4]
|
aff=['0','1','2','3','4']
|
||||||
if(type):
|
if(type):
|
||||||
aff = search.cleaned_data['affichage']
|
aff = search.cleaned_data['affichage']
|
||||||
co = search.cleaned_data['connexion']
|
co = search.cleaned_data['connexion']
|
||||||
|
@ -32,7 +32,7 @@ def search_result(search, type):
|
||||||
date_fin = search.cleaned_data['date_fin']
|
date_fin = search.cleaned_data['date_fin']
|
||||||
date_query = Q()
|
date_query = Q()
|
||||||
if aff==[]:
|
if aff==[]:
|
||||||
aff = [0,1,2,3,4]
|
aff = ['0','1','2','3','4']
|
||||||
if date_deb != None:
|
if date_deb != None:
|
||||||
date_query = date_query & Q(date__gte=date_deb)
|
date_query = date_query & Q(date__gte=date_deb)
|
||||||
if date_fin != None:
|
if date_fin != None:
|
||||||
|
|
Loading…
Reference in a new issue