Debug prints utf8
This commit is contained in:
parent
b145fc8e2e
commit
81a72e356d
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ def cherche(**kwargs):
|
||||||
|
|
||||||
# Champ générique : recherche dans tous les champs
|
# Champ générique : recherche dans tous les champs
|
||||||
if field_relevant("generique"):
|
if field_relevant("generique"):
|
||||||
print "Filtre generique", kwargs['generique']
|
#print "Filtre generique", kwargs['generique']
|
||||||
dsl = dsl.filter(
|
dsl = dsl.filter(
|
||||||
"match",
|
"match",
|
||||||
_all={"query": kwargs["generique"],
|
_all={"query": kwargs["generique"],
|
||||||
|
@ -109,7 +109,7 @@ def cherche(**kwargs):
|
||||||
if use_dsl:
|
if use_dsl:
|
||||||
filtres &= Q(id__in=[s.meta.id for s in dsl])
|
filtres &= Q(id__in=[s.meta.id for s in dsl])
|
||||||
|
|
||||||
print filtres
|
#print filtres
|
||||||
resultat = Stage.objects.filter(filtres)
|
resultat = Stage.objects.filter(filtres)
|
||||||
tri = 'pertinence'
|
tri = 'pertinence'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue