Merge branch 'master' of git.eleves.ens.fr:champeno/experiENS
This commit is contained in:
commit
900a1a814e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue