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 | 752d3d8eda5cd968faf0d370ae2d781575c60d90 (patch) | |
tree | 6f28b883d2ab3d8d94c0774134ce3d8d703ff277 /ishtar_common/models.py | |
parent | ff8cf8f853914a847609c05c973e5ac199e30c6b (diff) | |
download | Ishtar-752d3d8eda5cd968faf0d370ae2d781575c60d90.tar.bz2 Ishtar-752d3d8eda5cd968faf0d370ae2d781575c60d90.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) |