diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-10 16:55:21 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-10 18:23:34 +0100 |
commit | 4f2c8b7d8564d3f4bf59d437a79e86a7a81c88e2 (patch) | |
tree | 06bf4f465d02bcb5fe7a7b281fbd4b12c9c967fb /archaeological_warehouse/models.py | |
parent | 9b3f2e0d6523958742256840266119395af860c3 (diff) | |
download | Ishtar-4f2c8b7d8564d3f4bf59d437a79e86a7a81c88e2.tar.bz2 Ishtar-4f2c8b7d8564d3f4bf59d437a79e86a7a81c88e2.zip |
✨ sheet account: display attached items (refs #6208)
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index be4349121..800cfbccf 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -28,7 +28,7 @@ from django.core.exceptions import ObjectDoesNotExist from django.db.models import Q, Max from django.db.models.signals import post_save, post_delete, m2m_changed, pre_delete from django.template.defaultfilters import slugify -from django.urls import reverse +from django.urls import reverse, reverse_lazy from ishtar_common.utils import ugettext_lazy as _, pgettext_lazy from django.apps import apps @@ -374,6 +374,7 @@ class Warehouse( "precise_town__areas__label__iexact" ), } + ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) GEO_LABEL = "name" CACHED_LABELS = ["cached_town_label"] @@ -412,6 +413,7 @@ class Warehouse( QA_LOCK, QA_LINK ] + DEFAULT_WIZARD = reverse_lazy("warehouse_search", args=["selec-warehouse_search"]) objects = UUIDModelManager() @@ -1180,6 +1182,7 @@ class Container( (("archaeological_finds", "Find"), "finds__pk"), (("archaeological_finds", "Find"), "finds_ref__pk"), ] + DEFAULT_WIZARD = reverse_lazy("container_search", args=["selec-container_search"]) objects = UUIDModelManager() |