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/forms.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/forms.py') diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index ad2548aa1..5a2e14b02 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -1312,12 +1312,16 @@ class GeoItemSelect(DocumentItemSelect): # all geo item can have documents geodata__data_type = forms.ChoiceField(label=_("Geo - Data type"), choices=[]) geodata__origin = forms.ChoiceField(label=_("Geo - Origin"), choices=[]) geodata__provider = forms.ChoiceField(label=_("Geo - Provider"), choices=[]) + geodata__z__gt = forms.FloatField(label=_("Geo - Z - higher than")) + geodata__z__lt = forms.FloatField(label=_("Geo - Z - lower than")) geodata__comment = forms.CharField(label=_("Geo - Comment"), max_length=500) CURRENT_FIELDS = [ "geodata__name", "geodata__data_type", "geodata__origin", "geodata__provider", + "geodata__z__gt", + "geodata__z__lt", "geodata__comment", ] + DocumentItemSelect.CURRENT_FIELDS _explicit_ordering = True -- cgit v1.2.3