summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-06 17:56:14 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:45:57 +0100
commit1d049ac1cac1aa74610e298f5d074527dabdbb5c (patch)
tree445d97245a46afef7ac79b7782318ed50aa46976 /ishtar_common/models.py
parent32b4271ea9e7540a7613429563fffde20e57690d (diff)
downloadIshtar-1d049ac1cac1aa74610e298f5d074527dabdbb5c.tar.bz2
Ishtar-1d049ac1cac1aa74610e298f5d074527dabdbb5c.zip
✨ Town, area searches for person, organisations, archaeological files, context records, warehouses and containers (refs #6095)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py7
1 files changed, 5 insertions, 2 deletions
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",