summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-12-03 14:00:23 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:22 +0100
commit42e32d4cdd18474c4daf5bf960cebb0855dad9ef (patch)
tree0081995b45531ce4769fe070baaf06b97b3b7ffe /archaeological_operations
parentc42aecdda25802c2b3b9db27179720517f2be70e (diff)
downloadIshtar-42e32d4cdd18474c4daf5bf960cebb0855dad9ef.tar.bz2
Ishtar-42e32d4cdd18474c4daf5bf960cebb0855dad9ef.zip
Add doc search to operations
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/models.py7
1 files changed, 6 insertions, 1 deletions
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 = {}