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_finds | |
parent | 707e0f9edcde92c47cd543325187e9e13b9ef43f (diff) | |
download | Ishtar-307e1a0de31963584d1916ca1f8c7eb0e50ebe6a.tar.bz2 Ishtar-307e1a0de31963584d1916ca1f8c7eb0e50ebe6a.zip |
🐛 templates: add missing m2m values
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 23 | ||||
-rw-r--r-- | archaeological_finds/models_treatments.py | 1 |
2 files changed, 16 insertions, 8 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 7ce184fc0..5f8c30701 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1950,17 +1950,24 @@ class Find( ] GET_VALUES_EXTRA = ValueGetter.GET_VALUES_EXTRA + ["complete_id", "context_record_label"] - GET_VALUES_EXTRA_TYPES = ValueGetter.GET_VALUES_EXCLUDE_FIELDS + [ - "material_types", - "object_types", - "functional_areas", - "integrities", - "remarkabilities", - "communicabilities", - "preservation_to_considers", + GET_VALUES_M2M = [ "alterations", "alteration_causes", + "communicabilities", "conservatory_states", + "cultural_attributions", + "functional_areas", + "material_types", + "integrities", + "preservation_to_considers", + "museum_former_collections", + "museum_inventory_marking_presence", + "museum_marking_type", + "object_types", + "preservation_to_considers", + "remarkabilities", + "technical_areas", + "technical_processes", ] CACHED_LABELS = [ "cache_complete_museum_id", diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index eb149b0de..168c87e2f 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -196,6 +196,7 @@ class Treatment( SearchVectorConfig("upstream__cached_label"), ] PARENT_SEARCH_VECTORS = ["person", "organization"] + GET_VALUES_M2M = ["treatment_types"] objects = ExternalIdManager() label = models.CharField(_("Label"), blank=True, null=True, max_length=200) |