diff --git a/avisstage/views_search.py b/avisstage/views_search.py index cbf156c..7984b67 100644 --- a/avisstage/views_search.py +++ b/avisstage/views_search.py @@ -139,7 +139,7 @@ def recherche_resultats(request): if form.is_valid(): stages, tri = cherche(**form.cleaned_data) stages = stages.prefetch_related('lieux', 'auteur', 'matieres', 'thematiques') - 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: