summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py7
1 files changed, 4 insertions, 3 deletions
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 (