From 7fe69ae8c625ee4d647284c008900b9485b9c8c8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 8 Jun 2023 17:10:05 +0200 Subject: ✨ Search criteria - geo - "Z lower than", "Z higher than" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index a6f5d1197..78a7cc037 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -3039,6 +3039,14 @@ class GeographicItem(models.Model): "geodata__provider": SearchAltName( pgettext_lazy("key for text search", "geo-provider"), "geodata__provider__label__iexact" ), + "geodata__z__gt": SearchAltName( + pgettext_lazy("key for text search", "z-higher"), + "geodata__cached_z__gte" + ), + "geodata__z__lt": SearchAltName( + pgettext_lazy("key for text search", "z-lower"), + "geodata__cached_z__lte" + ), "geodata__comment": SearchAltName( pgettext_lazy("key for text search", "geo-comment"), "geodata__comment__iexact" ), -- cgit v1.2.3