Hotfix recherche pour stages sans lieu
This commit is contained in:
parent
7184cc287d
commit
d6aec3aff6
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ def recherche_resultats(request):
|
||||||
form = SearchForm(request.GET)
|
form = SearchForm(request.GET)
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
stages, tri = cherche(**form.cleaned_data)
|
stages, tri = cherche(**form.cleaned_data)
|
||||||
lieux = map(list, stages.values_list('id', 'lieux'))
|
lieux = [[stageid, lieuid] for (stageid, lieuid) in stages.values_list('id', 'lieux') if lieuid is not None]
|
||||||
else:
|
else:
|
||||||
form = SearchForm()
|
form = SearchForm()
|
||||||
if stages:
|
if stages:
|
||||||
|
|
Loading…
Reference in a new issue