From 9f41681bb297d0c7b51bb2c2a1b1348a793df33f Mon Sep 17 00:00:00 2001 From: ffont Date: Fri, 9 Feb 2024 12:19:51 +0100 Subject: [PATCH] Improve query description in map page --- geotags/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geotags/views.py b/geotags/views.py index b7ca034ba..6bfb4dace 100644 --- a/geotags/views.py +++ b/geotags/views.py @@ -284,6 +284,8 @@ def for_query(request): tvars = _get_geotags_query_params(request) request_parameters_string = request.get_full_path().split('?')[-1] q = request.GET.get('q', None) + if q == '': + q = None f = request.GET.get('f', None) query_description = '' if q is None and f is None: