summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-04-20 16:28:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-04-20 16:28:21 +0200
commit0ff92ef98dbfbfc0e2d89dff18f7bb2dc3950b8c (patch)
treedea08fc84ca5ef9d4bcbaae8e2629e73573eab6d /ishtar_common/models.py
parenta589b3ef96c9adf4e408713201ffe7d269e4f78f (diff)
downloadIshtar-0ff92ef98dbfbfc0e2d89dff18f7bb2dc3950b8c.tar.bz2
Ishtar-0ff92ef98dbfbfc0e2d89dff18f7bb2dc3950b8c.zip
precise_town refactoring for django app consistency
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 (