From 1d20feffbce11f3579ac8f3dc325e5aa431d4e4a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 7 Aug 2025 12:49:17 +0200 Subject: 🐛 searches: fix exact date searches for datetime fields (refs #6411) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index b7d6004c3..cda01a048 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -5043,12 +5043,9 @@ class Document( # search parameters REVERSED_BOOL_FIELDS = ["image__isnull", "associated_file__isnull"] DATED_FIELDS = BaseHistorizedItem.DATED_FIELDS + [ - "receipt_date__lte", - "receipt_date__gte", - "receipt_date_in_documentation__lte", - "receipt_date_in_documentation__gte", - "creation_date__lte", - "creation_date__gte", + "receipt_date", + "receipt_date_in_documentation", + "creation_date", ] objects = ExternalIdManager() -- cgit v1.2.3