From 1d049ac1cac1aa74610e298f5d074527dabdbb5c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 6 Feb 2025 17:56:14 +0100 Subject: ✨ Town, area searches for person, organisations, archaeological files, context records, warehouses and containers (refs #6095) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 949120383..102e01f0a 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2641,7 +2641,8 @@ organization_type_pks_lazy = lazy(OrganizationType.get_or_create_pks, str) class Organization(Address, Merge, OwnPerms, BaseGenderedType, ValueGetter, MainItem): - TABLE_COLS = ("name", "organization_type", "address", "town") #, "precise_town") + TABLE_COLS = ("name", "organization_type", "address", "town") + # , "precise_town") SLUG = "organization" SHOW_URL = "show-organization" DELETE_URL = "delete-organization" @@ -2677,6 +2678,7 @@ class Organization(Address, Merge, OwnPerms, BaseGenderedType, ValueGetter, Main "museum_museofile_id__iexact", ), } + ALT_NAMES.update(Address.ALT_NAMES) QA_EDIT = QuickAction( url="organization-qa-bulk-update", icon_class="fa fa-pencil", @@ -2934,7 +2936,7 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): "title": SearchAltName( pgettext_lazy("key for text search", "title"), "title__label__iexact", related_name="title" - ), + ), "salutation": SearchAltName( pgettext_lazy("key for text search", "salutation"), "salutation__iexact" ), @@ -2957,6 +2959,7 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): "profiles__profile_type__label__iexact", ), } + ALT_NAMES.update(Address.ALT_NAMES) QA_EDIT = QuickAction( url="person-qa-bulk-update", icon_class="fa fa-pencil", -- cgit v1.2.3