summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 50dcd20f3..e847429a0 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -1020,6 +1020,7 @@ class Operation(
"documents__image__isnull",
"documents__associated_file__isnull",
"documents__associated_url__isnull",
+ "associated_file__isnull",
]
DATED_FIELDS = BaseHistorizedItem.DATED_FIELDS + [
"start_date",
@@ -1215,6 +1216,10 @@ class Operation(
"operator_reference": SearchAltName(
pgettext_lazy("key for text search", "operator-reference"), "operator_reference__iexact"
),
+ "associated_file__isnull": SearchAltName(
+ pgettext_lazy("key for text search", "has-archeo-file"),
+ "associated_file__isnull"
+ ),
"abstract": SearchAltName(
pgettext_lazy("key for text search", "abstract"), "abstract__iexact"
),