diff options
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 |
commit | 14b4caad1c1eb9e009d485b4428af3f708afe758 (patch) | |
tree | 6f28b883d2ab3d8d94c0774134ce3d8d703ff277 /ishtar_common/models.py | |
parent | e958aa339d4c46cd8edb4624d0c28ccef0495657 (diff) | |
download | Ishtar-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.py | 8 |
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) |