From 1a86dfe4ab25013f64f6028d8e09cc0ce0a1fcd8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 3 Dec 2020 14:00:23 +0100 Subject: Add doc search to operations --- archaeological_operations/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index b2d7740a1..db573a650 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1971,7 +1971,11 @@ class AdministrativeAct(BaseHistorizedItem, OwnPerms, ValueGetter): 'signature_date_after': 'signature_date__gte', 'year': 'signature_date__year', } - REVERSED_BOOL_FIELDS = ['index__isnull'] + REVERSED_BOOL_FIELDS = [ + 'index__isnull', 'documents__image__isnull', + 'documents__associated_url__isnull', + 'documents__associated_file__isnull', + ] RELATIVE_SESSION_NAMES = [('operation', 'operation__pk'), ('file', 'associated_file__pk')] COL_LABELS = { @@ -2127,6 +2131,7 @@ class AdministrativeAct(BaseHistorizedItem, OwnPerms, ValueGetter): ), } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) + ALT_NAMES.update(DocumentItem.ALT_NAMES) UP_MODEL_QUERY = {} -- cgit v1.2.3