From cb8a0ed2da7a716c498e0ac519d8cb7d1b8e0be8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 24 Mar 2022 11:00:38 +0100 Subject: Fix dated field search (modified after/before) --- ishtar_common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 7d634a680..5d034974d 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3757,7 +3757,7 @@ class Document( # search parameters REVERSED_BOOL_FIELDS = ["image__isnull", "associated_file__isnull"] - DATED_FIELDS = [ + DATED_FIELDS = BaseHistorizedItem.DATED_FIELDS + [ "receipt_date__lte", "receipt_date__gte", "receipt_date_in_documentation__lte", -- cgit v1.2.3