From 8958f2a06a0e19228bf16c16250885d971211dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Thu, 2 Nov 2017 00:35:22 +0000 Subject: [PATCH] =?UTF-8?q?Adapte=20le=20champs=20search=20de=20navbar=20a?= =?UTF-8?q?ux=20nouveaut=C3=A9=20et=20y=20affiche=20la=20query?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search/views.py | 1 + templates/base.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/search/views.py b/search/views.py index 5846d946..318e0269 100644 --- a/search/views.py +++ b/search/views.py @@ -225,6 +225,7 @@ def get_results(query, request, filters={}): results[r] = results[r].distinct()[:max_result] results.update({'max_result': max_result}) + results.update({'search_term': query}) return results diff --git a/templates/base.html b/templates/base.html index 0e8c6187..bef52a8b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -74,7 +74,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,