summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
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 = {}