From d6aec3aff6793ba72f322e6fe8ccb808ca33a0e7 Mon Sep 17 00:00:00 2001 From: Robin Champenois Date: Fri, 23 Jun 2017 11:13:34 +0200 Subject: [PATCH] Hotfix recherche pour stages sans lieu --- avisstage/views_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avisstage/views_search.py b/avisstage/views_search.py index 427a055..d564194 100644 --- a/avisstage/views_search.py +++ b/avisstage/views_search.py @@ -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: