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)
|
||||
if form.is_valid():
|
||||
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:
|
||||
form = SearchForm()
|
||||
if stages:
|
||||
|
|
Loading…
Reference in a new issue