diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-06-26 11:04:17 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-06-26 11:04:17 +0200 |
commit | 307e1a0de31963584d1916ca1f8c7eb0e50ebe6a (patch) | |
tree | ab7e1fc5ff12f289fd62133b1d638ddc22429335 /archaeological_operations | |
parent | 707e0f9edcde92c47cd543325187e9e13b9ef43f (diff) | |
download | Ishtar-307e1a0de31963584d1916ca1f8c7eb0e50ebe6a.tar.bz2 Ishtar-307e1a0de31963584d1916ca1f8c7eb0e50ebe6a.zip |
🐛 templates: add missing m2m values
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/models.py | 16 |
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", |