summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-12-04 11:43:19 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:22 +0100
commit2806ffa1a19e41bbbd1e59abcce9fe07ed2d805b (patch)
tree6a626221e6949e5ae72aea334b4c7520496aaec0 /ishtar_common
parentbbcc4f742756490c279401591266ab9ba10644d1 (diff)
downloadIshtar-2806ffa1a19e41bbbd1e59abcce9fe07ed2d805b.tar.bz2
Ishtar-2806ffa1a19e41bbbd1e59abcce9fe07ed2d805b.zip
File: add edit button on sheet - fix research forms
Diffstat (limited to 'ishtar_common')
-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")