Merge branch 'master' of git.eleves.ens.fr:champeno/experiENS

This commit is contained in:
Evarin 2017-06-26 23:43:17 +02:00
commit 900a1a814e

View file

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