diff options
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 |
commit | d992bb445b8ceea253fec86a45cc11a736cfa876 (patch) | |
tree | 6a626221e6949e5ae72aea334b4c7520496aaec0 /ishtar_common | |
parent | e19f6a8d40fa81f4985179b2d1b53b208273e754 (diff) | |
download | Ishtar-d992bb445b8ceea253fec86a45cc11a736cfa876.tar.bz2 Ishtar-d992bb445b8ceea253fec86a45cc11a736cfa876.zip |
File: add edit button on sheet - fix research forms
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 13 |
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") |