Hotfix recherche pour stages sans lieu

This commit is contained in:
Robin Champenois 2017-06-23 11:13:34 +02:00
parent 7184cc287d
commit d6aec3aff6

View file

@ -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: