diff options
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 |
commit | 1a86dfe4ab25013f64f6028d8e09cc0ce0a1fcd8 (patch) | |
tree | 0081995b45531ce4769fe070baaf06b97b3b7ffe /archaeological_operations/models.py | |
parent | bff83627dd1555278d00a553f8dd64df81b0478c (diff) | |
download | Ishtar-1a86dfe4ab25013f64f6028d8e09cc0ce0a1fcd8.tar.bz2 Ishtar-1a86dfe4ab25013f64f6028d8e09cc0ce0a1fcd8.zip |
Add doc search to operations
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 7 |
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 = {} |