diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-01 15:38:11 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-01 18:13:42 +0100 |
| commit | bc1e5abd91aeeb9be6c318d8d9c59602ce7df26e (patch) | |
| tree | 715bb9464ed8072329ceb174bde662568714f84e | |
| parent | 9de45f70dbe6821e10ecb90f0407d8f25e2745a5 (diff) | |
| download | Ishtar-bc1e5abd91aeeb9be6c318d8d9c59602ce7df26e.tar.bz2 Ishtar-bc1e5abd91aeeb9be6c318d8d9c59602ce7df26e.zip | |
🐛 use > instead of / for some hierarchical items (refs #6513)
- container localisations
- geographic area
- documents types
- inline help for hierarchical types
| -rw-r--r-- | archaeological_warehouse/models.py | 2 | ||||
| -rw-r--r-- | ishtar_common/models.py | 4 | ||||
| -rw-r--r-- | ishtar_common/models_common.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 4a5294632..4ce50e401 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -1344,7 +1344,7 @@ class Container( def generate_full_location(self): full_location = [location.short_label for location in self.get_localisations()] full_location.append(self.short_label) - return " / ".join(full_location) + return " > ".join(full_location) def _generate_cached_weight(self): return self.weight if self.weight else self.calculated_weight diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 86be555ca..7daee912b 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2654,7 +2654,7 @@ class Area(HierarchicalType, DocumentItem, MainItem): label = [str(self)] if self.parent and self.parent.pk != self.pk: label.append(self.parent.full_label) - return " / ".join(label) + return " > ".join(label) def _get_base_image_path(self): return self.SLUG @@ -5504,7 +5504,7 @@ class Document( while source_type: source_types.append(str(source_type)) source_type = source_type.parent - return " / ".join(reversed(source_types)) + return " > ".join(reversed(source_types)) def public_representation(self): site = Site.objects.get_current() diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 986ba209d..6bc7efdc2 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -346,7 +346,7 @@ class GeneralType(Cached, models.Model): c_item = c_item.parent parents.reverse() parents.append(item.label) - item.label = " / ".join(parents) + item.label = " > ".join(parents) if not item.comment: continue if c_rank > item.rank: |
