From 1c24a7d54c4ef9c3cd105e37d6b10887bbe49b89 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Thu, 28 Oct 2010 17:06:57 -0400 Subject: [PATCH] =?utf8?q?Recherche=20par=20mots-cl=C3=A9s=20dans=20les=20di?= =?utf8?q?sciplines=20et=20r=C3=A9gions=20des=20chercheurs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- auf_savoirs_en_partage/chercheurs/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/auf_savoirs_en_partage/chercheurs/models.py b/auf_savoirs_en_partage/chercheurs/models.py index 21462f8..b7cdd54 100644 --- a/auf_savoirs_en_partage/chercheurs/models.py +++ b/auf_savoirs_en_partage/chercheurs/models.py @@ -50,7 +50,14 @@ class ChercheurQuerySet(models.query.QuerySet): Q(personne__prenom__icontains=word) | Q(expertise__icontains=word) | Q(etablissement_autre_nom__icontains=word) | - Q(etablissement__nom__icontains=word)) + Q(etablissement__nom__icontains=word) | + Q(etablissement__pays__nom__icontains=word) | + Q(discipline__nom__icontains=word) | + Q(publication1__titre__icontains=word) | + Q(publication2__titre__icontains=word) | + Q(publication3__titre__icontains=word) | + Q(publication4__titre__icontains=word) | + Q(these__titre__icontains=word)).distinct() return qs FONCTION_CHOICES = (('Professeur', 'Professeur'), ('Chercheur', 'Chercheur'), ('Chercheur_independant', 'Chercheur indépendant'), ('Doctorant', 'Doctorant')) -- 1.7.10.4