From 0ff92ef98dbfbfc0e2d89dff18f7bb2dc3950b8c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 20 Apr 2023 16:28:21 +0200 Subject: precise_town refactoring for django app consistency --- ishtar_common/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index dd968f891..1045adbe5 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2536,7 +2536,7 @@ 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" @@ -2548,7 +2548,9 @@ class Organization(Address, Merge, OwnPerms, BaseGenderedType, ValueGetter, Main BASE_SEARCH_VECTORS = [ SearchVectorConfig("name"), SearchVectorConfig("town"), - SearchVectorConfig("precise_town__name"), + ] + PROPERTY_SEARCH_VECTORS = [ + SearchVectorConfig("precise_town_name"), ] # alternative names of fields for searches @@ -3170,7 +3172,6 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): ] return actions - @classmethod def get_query_owns(cls, ishtaruser): return ( -- cgit v1.2.3