Forms
hypha.apply.review.forms
¶
MixedMetaClass
¶
Bases: type(StreamBaseForm)
, type(ModelForm)
ReviewModelForm
¶
Bases: StreamBaseForm
, ModelForm
Source code in hypha/apply/review/forms.py
Meta
¶
fields
class-attribute
instance-attribute
¶
widgets
class-attribute
instance-attribute
¶
widgets = {'recommendation': HiddenInput(), 'score': HiddenInput(), 'submission': HiddenInput(), 'visibility': HiddenInput()}
error_messages
class-attribute
instance-attribute
¶
error_messages = {NON_FIELD_ERRORS: {'unique_together': 'You have already posted a review for this submission'}}
swap_fields_for_display
¶
Source code in hypha/apply/stream_forms/forms.py
hidden_fields
¶
delete_temporary_files
¶
Overridden method of django_file_form's FileFormMixin, to handle multiple forms on the same page.
Source code in hypha/apply/stream_forms/forms.py
clean
¶
save
¶
Source code in hypha/apply/review/forms.py
calculate_score
¶
Source code in hypha/apply/review/forms.py
SubmitButtonWidget
¶
Bases: Widget
render
¶
Source code in hypha/apply/review/forms.py
OpinionField
¶
Bases: IntegerField
Source code in hypha/apply/review/forms.py
ReviewOpinionForm
¶
Bases: ModelForm