Models
hypha.apply.determinations.models
¶
DeterminationFormFieldsMixin
¶
Bases: Model
wagtail_reference_index_ignore
class-attribute
instance-attribute
¶
form_fields
class-attribute
instance-attribute
¶
form_fields = StreamField(DeterminationCustomFormFieldsBlock(), default=[], use_json_field=True)
DeterminationForm
¶
Bases: DeterminationFormFieldsMixin
, Model
wagtail_reference_index_ignore
class-attribute
instance-attribute
¶
form_fields
class-attribute
instance-attribute
¶
form_fields = StreamField(DeterminationCustomFormFieldsBlock(), default=[], use_json_field=True)
panels
class-attribute
instance-attribute
¶
Determination
¶
Bases: DeterminationFormFieldsMixin
, AccessFormData
, Model
wagtail_reference_index_ignore
class-attribute
instance-attribute
¶
form_fields
class-attribute
instance-attribute
¶
form_fields = StreamField(DeterminationCustomFormFieldsBlock(), default=[], use_json_field=True)
submission
class-attribute
instance-attribute
¶
submission = ForeignKey('funds.ApplicationSubmission', on_delete=CASCADE, related_name='determinations')
outcome
class-attribute
instance-attribute
¶
outcome = IntegerField(verbose_name=gettext_lazy('Determination'), choices=DETERMINATION_CHOICES, default=1)
message
class-attribute
instance-attribute
¶
form_data
class-attribute
instance-attribute
¶
is_draft
class-attribute
instance-attribute
¶
created_at
class-attribute
instance-attribute
¶
updated_at
class-attribute
instance-attribute
¶
send_notice
class-attribute
instance-attribute
¶
drupal_id
class-attribute
instance-attribute
¶
use_new_determination_form
property
¶
Checks if a submission has the new streamfield determination form attached to it and along with that it also verify that if self.data is None.
self.data would be set as None for the determination which are created using streamfield determination forms.
But old lab forms can be edited to add new determination forms so we need to use old determination forms for already submitted determination.
stream_file
classmethod
¶
Source code in hypha/apply/funds/models/mixins.py
process_file
classmethod
¶
process_file_data
¶
Source code in hypha/apply/funds/models/mixins.py
extract_files
¶
from_db
classmethod
¶
Source code in hypha/apply/funds/models/mixins.py
deserialised_data
classmethod
¶
Source code in hypha/apply/funds/models/mixins.py
get_definitive_id
¶
field
¶
get_serialize_multi_inputs_answer
¶
Source code in hypha/apply/funds/models/mixins.py
serialize
¶
Source code in hypha/apply/funds/models/mixins.py
get_multi_inputs_answer
¶
Source code in hypha/apply/funds/models/mixins.py
render_answer
¶
Source code in hypha/apply/funds/models/mixins.py
render_answers
¶
render_first_group_text_answers
¶
render_text_blocks_answers
¶
Source code in hypha/apply/funds/models/mixins.py
output_answers
¶
output_text_answers
¶
output_first_group_text_answers
¶
get_answer_from_label
¶
Source code in hypha/apply/funds/models/mixins.py
get_absolute_url
¶
get_detailed_response
¶
Source code in hypha/apply/determinations/models.py
DeterminationMessageSettings
¶
Bases: BaseSiteSetting
wagtail_reference_index_ignore
class-attribute
instance-attribute
¶
request_accepted
class-attribute
instance-attribute
¶
request_rejected
class-attribute
instance-attribute
¶
request_more_info
class-attribute
instance-attribute
¶
concept_accepted
class-attribute
instance-attribute
¶
concept_rejected
class-attribute
instance-attribute
¶
concept_more_info
class-attribute
instance-attribute
¶
proposal_accepted
class-attribute
instance-attribute
¶
proposal_rejected
class-attribute
instance-attribute
¶
proposal_more_info
class-attribute
instance-attribute
¶
request_tab_panels
class-attribute
instance-attribute
¶
request_tab_panels = [FieldPanel('request_accepted'), FieldPanel('request_rejected'), FieldPanel('request_more_info')]
concept_tab_panels
class-attribute
instance-attribute
¶
concept_tab_panels = [FieldPanel('concept_accepted'), FieldPanel('concept_rejected'), FieldPanel('concept_more_info')]
proposal_tab_panels
class-attribute
instance-attribute
¶
proposal_tab_panels = [FieldPanel('proposal_accepted'), FieldPanel('proposal_rejected'), FieldPanel('proposal_more_info')]
edit_handler
class-attribute
instance-attribute
¶
edit_handler = TabbedInterface([ObjectList(request_tab_panels, heading=gettext_lazy('Request')), ObjectList(concept_tab_panels, heading=gettext_lazy('Concept note')), ObjectList(proposal_tab_panels, heading=gettext_lazy('Proposal'))])
get_for_stage
¶
Source code in hypha/apply/determinations/models.py
DeterminationFormSettings
¶
Bases: BaseSiteSetting
concept_principles_label
class-attribute
instance-attribute
¶
concept_principles_help_text
class-attribute
instance-attribute
¶
concept_technical_label
class-attribute
instance-attribute
¶
concept_technical_help_text
class-attribute
instance-attribute
¶
concept_sustainable_label
class-attribute
instance-attribute
¶
concept_sustainable_label = CharField('label', default='Reasonable, realistic and sustainable', max_length=255)
concept_sustainable_help_text
class-attribute
instance-attribute
¶
proposal_liked_label
class-attribute
instance-attribute
¶
proposal_liked_help_text
class-attribute
instance-attribute
¶
proposal_concerns_label
class-attribute
instance-attribute
¶
proposal_concerns_help_text
class-attribute
instance-attribute
¶
proposal_red_flags_label
class-attribute
instance-attribute
¶
proposal_red_flags_label = CharField('label', default='Items that must be addressed', max_length=255)
proposal_red_flags_help_text
class-attribute
instance-attribute
¶
proposal_overview_label
class-attribute
instance-attribute
¶
proposal_overview_label = CharField('label', default='Project overview questions and comments', max_length=255)
proposal_overview_help_text
class-attribute
instance-attribute
¶
proposal_objectives_label
class-attribute
instance-attribute
¶
proposal_objectives_label = CharField('label', default='Objectives questions and comments', max_length=255)
proposal_objectives_help_text
class-attribute
instance-attribute
¶
proposal_strategy_label
class-attribute
instance-attribute
¶
proposal_strategy_label = CharField('label', default='Methods and strategy questions and comments', max_length=255)
proposal_strategy_help_text
class-attribute
instance-attribute
¶
proposal_technical_label
class-attribute
instance-attribute
¶
proposal_technical_label = CharField('label', default='Technical feasibility questions and comments', max_length=255)
proposal_technical_help_text
class-attribute
instance-attribute
¶
proposal_alternative_label
class-attribute
instance-attribute
¶
proposal_alternative_label = CharField('label', default='Alternative analysis - "red teaming" questions and comments', max_length=255)
proposal_alternative_help_text
class-attribute
instance-attribute
¶
proposal_usability_label
class-attribute
instance-attribute
¶
proposal_usability_label = CharField('label', default='Usability questions and comments', max_length=255)
proposal_usability_help_text
class-attribute
instance-attribute
¶
proposal_sustainability_label
class-attribute
instance-attribute
¶
proposal_sustainability_label = CharField('label', default='Sustainability questions and comments', max_length=255)
proposal_sustainability_help_text
class-attribute
instance-attribute
¶
proposal_collaboration_label
class-attribute
instance-attribute
¶
proposal_collaboration_label = CharField('label', default='Collaboration questions and comments', max_length=255)
proposal_collaboration_help_text
class-attribute
instance-attribute
¶
proposal_realism_label
class-attribute
instance-attribute
¶
proposal_realism_label = CharField('label', default='Cost realism questions and comments', max_length=255)
proposal_realism_help_text
class-attribute
instance-attribute
¶
proposal_qualifications_label
class-attribute
instance-attribute
¶
proposal_qualifications_label = CharField('label', default='Qualifications questions and comments', max_length=255)
proposal_qualifications_help_text
class-attribute
instance-attribute
¶
proposal_evaluation_label
class-attribute
instance-attribute
¶
proposal_evaluation_label = CharField('label', default='Evaluation questions and comments', max_length=255)
proposal_evaluation_help_text
class-attribute
instance-attribute
¶
concept_help_text_tab_panels
class-attribute
instance-attribute
¶
concept_help_text_tab_panels = [MultiFieldPanel([FieldPanel('concept_principles_label'), FieldPanel('concept_principles_help_text')], 'concept principles'), MultiFieldPanel([FieldPanel('concept_technical_label'), FieldPanel('concept_technical_help_text')], 'concept technical'), MultiFieldPanel([FieldPanel('concept_sustainable_label'), FieldPanel('concept_sustainable_help_text')], 'concept sustainable')]
proposal_help_text_tab_panels
class-attribute
instance-attribute
¶
proposal_help_text_tab_panels = [MultiFieldPanel([FieldPanel('proposal_liked_label'), FieldPanel('proposal_liked_help_text')], 'proposal liked'), MultiFieldPanel([FieldPanel('proposal_concerns_label'), FieldPanel('proposal_concerns_help_text')], 'proposal concerns'), MultiFieldPanel([FieldPanel('proposal_red_flags_label'), FieldPanel('proposal_red_flags_help_text')], 'proposal red flags'), MultiFieldPanel([FieldPanel('proposal_overview_label'), FieldPanel('proposal_overview_help_text')], 'proposal overview'), MultiFieldPanel([FieldPanel('proposal_objectives_label'), FieldPanel('proposal_objectives_help_text')], 'proposal objectives'), MultiFieldPanel([FieldPanel('proposal_strategy_label'), FieldPanel('proposal_strategy_help_text')], 'proposal strategy'), MultiFieldPanel([FieldPanel('proposal_technical_label'), FieldPanel('proposal_technical_help_text')], 'proposal technical'), MultiFieldPanel([FieldPanel('proposal_alternative_label'), FieldPanel('proposal_alternative_help_text')], 'proposal alternative'), MultiFieldPanel([FieldPanel('proposal_usability_label'), FieldPanel('proposal_usability_help_text')], 'proposal usability'), MultiFieldPanel([FieldPanel('proposal_sustainability_label'), FieldPanel('proposal_sustainability_help_text')], 'proposal sustainability'), MultiFieldPanel([FieldPanel('proposal_collaboration_label'), FieldPanel('proposal_collaboration_help_text')], 'proposal collaboration'), MultiFieldPanel([FieldPanel('proposal_realism_label'), FieldPanel('proposal_realism_help_text')], 'proposal realism'), MultiFieldPanel([FieldPanel('proposal_qualifications_label'), FieldPanel('proposal_qualifications_help_text')], 'proposal qualifications'), MultiFieldPanel([FieldPanel('proposal_evaluation_label'), FieldPanel('proposal_evaluation_help_text')], 'proposal evaluation')]
edit_handler
class-attribute
instance-attribute
¶
edit_handler = TabbedInterface([ObjectList(concept_help_text_tab_panels, heading=gettext_lazy('Concept form')), ObjectList(proposal_help_text_tab_panels, heading=gettext_lazy('Proposal form'))])