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.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index b728b5387..c7406acfa 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1790,6 +1790,19 @@ person_type_pk_lazy = lazy(PersonType.get_or_create_pk, str)
person_type_pks_lazy = lazy(PersonType.get_or_create_pks, str)
+def get_sra_agent_head_scientist_label():
+ if apps.ready:
+ lbl = get_general_type_label(PersonType, "head_scientist")
+ if lbl:
+ lbl += str(_("/"))
+ lbl2 = get_general_type_label(PersonType, "sra_agent")
+ if lbl2:
+ lbl += lbl2
+ if lbl:
+ return lbl
+ return _("Error: sra_agent and head_scientist types are missing")
+
+
def get_sra_agent_label():
if apps.ready:
lbl = get_general_type_label(PersonType, "sra_agent")