summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-12-29 12:09:08 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:23 +0100
commit14b4caad1c1eb9e009d485b4428af3f708afe758 (patch)
tree6f28b883d2ab3d8d94c0774134ce3d8d703ff277 /ishtar_common/models.py
parente958aa339d4c46cd8edb4624d0c28ccef0495657 (diff)
downloadIshtar-14b4caad1c1eb9e009d485b4428af3f708afe758.tar.bz2
Ishtar-14b4caad1c1eb9e009d485b4428af3f708afe758.zip
Unaccent search for person/orga. Tips for operation form
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index c178b187f..807bbc64f 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1862,6 +1862,14 @@ def get_publisher_label():
return _("Error: publisher type is missing")
+def get_operator_label():
+ if apps.ready:
+ lbl = get_general_type_label(OrganizationType, "operator")
+ if lbl:
+ return lbl
+ return _("Error: operator type is missing")
+
+
class TitleType(GenderedType):
long_title = models.TextField(_("Long title"), default="", blank=True)