Utils
hypha.apply.funds.utils
¶
status_and_phases_mapping
module-attribute
¶
status_and_phases_mapping = {'received': ['need-screening', 'proposal-received'], 'in-discussion': ['ready-for-discussion'], 'internal-review': ['internal-review'], 'more-information': ['more-information-required'], 'invited-for-proposal': ['invited-for-proposal'], 'external-review': ['external-review'], 'ready-for-determination': ['ready-for-determination', 'ready-for-preliminary-determination', 'ready-for-final-determination'], 'accepted': ['accepted'], 'dismissed': ['dismissed']}
render_icon
¶
get_default_screening_statues
¶
Get the default screening decisions set.
If the default for yes and no doesn't exit. First yes and first no screening decisions created should be set as default
Source code in hypha/apply/funds/utils.py
model_form_initial
¶
This is a copy of django.forms.models.model_to_dict from the django version 2.2.x. It helps to provide initial to BaseModelForm with fields as empty list[].
Return a dict containing the data in instance
suitable for passing as
a Model Form's initial
keyword argument.
fields
is an optional list of field names. If provided, return only the
named.
exclude
is an optional list of field names. If provided, exclude the
named from the returned dict, even if they are listed in the fields
argument.