summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/models.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index d012b0088..7e3b0254f 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -340,6 +340,13 @@ class ArchaeologicalSite(
SearchVectorConfig("towns__numero_insee", "raw"),
]
PARENT_ONLY_SEARCH_VECTORS = ["operations"]
+ GET_VALUES_M2M = [
+ "periods",
+ "remains",
+ "cultural_attributions",
+ "towns",
+ "collaborators",
+ ]
DATED_FIELDS = BaseHistorizedItem.DATED_FIELDS + ["sinking_date"]
NUMBER_FIELDS = GeographicTownItem.NUMBER_FIELDS[:]
@@ -1024,6 +1031,15 @@ class Operation(
"finds_deposit_date",
]
NUMBER_FIELDS = ["year", "operation_code"] + GeographicTownItem.NUMBER_FIELDS
+
+ GET_VALUES_M2M = [
+ "collaborators",
+ "remains",
+ "towns",
+ "periods",
+ "cultural_attributions",
+ ]
+
EXTRA_REQUEST_KEYS = {
"operation_type__label": "operation_type__label",
"common_name": "common_name__icontains",