From d992bb445b8ceea253fec86a45cc11a736cfa876 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 4 Dec 2020 11:43:19 +0100 Subject: File: add edit button on sheet - fix research forms --- ishtar_common/models.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ishtar_common/models.py') 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") -- cgit v1.2.3