From 81a72e356dc0143fab951a83cd0282c903fdd7b0 Mon Sep 17 00:00:00 2001 From: Robin Champenois Date: Tue, 20 Jun 2017 19:17:59 +0200 Subject: [PATCH] Debug prints utf8 --- avisstage/views_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avisstage/views_search.py b/avisstage/views_search.py index 070af3a..427a055 100644 --- a/avisstage/views_search.py +++ b/avisstage/views_search.py @@ -56,7 +56,7 @@ def cherche(**kwargs): # Champ générique : recherche dans tous les champs if field_relevant("generique"): - print "Filtre generique", kwargs['generique'] + #print "Filtre generique", kwargs['generique'] dsl = dsl.filter( "match", _all={"query": kwargs["generique"], @@ -109,7 +109,7 @@ def cherche(**kwargs): if use_dsl: filtres &= Q(id__in=[s.meta.id for s in dsl]) - print filtres + #print filtres resultat = Stage.objects.filter(filtres) tri = 'pertinence'