Views
hypha.apply.utils.views
¶
ViewDispatcher
¶
Bases: View
admin_check
¶
reviewer_check
¶
partner_check
¶
community_check
¶
finance_check
¶
contracting_check
¶
applicant_check
¶
dispatch
¶
Source code in hypha/apply/utils/views.py
DelegatableBase
¶
Bases: ContextMixin
A view which passes its context to child form views to allow them to post to the same URL
DelegateableViews
objects should contain form views that inherit from DelegatedViewMixin
and FormView
Source code in hypha/apply/utils/views.py
get_form_kwargs
¶
get_context_data
¶
Source code in hypha/apply/utils/views.py
post
¶
Source code in hypha/apply/utils/views.py
DelegateableView
¶
Bases: DelegatableBase
Source code in hypha/apply/utils/views.py
get_context_data
¶
Source code in hypha/apply/utils/views.py
get_form_kwargs
¶
DelegateableListView
¶
Bases: DelegatableBase
Source code in hypha/apply/utils/views.py
get_context_data
¶
Source code in hypha/apply/utils/views.py
get_form_kwargs
¶
DelegatedViewMixin
¶
Bases: View
For use on create views accepting forms from another view
setup
¶
get_object
¶
Source code in hypha/apply/utils/views.py
get_template_names
¶
get_form_name
¶
get_form_kwargs
¶
get_parent_kwargs
¶
get_parent_object
¶
get_form
¶
get_context_data
¶
Source code in hypha/apply/utils/views.py
is_model_form
classmethod
¶
contribute_form
¶
Source code in hypha/apply/utils/views.py
CreateOrUpdateView
¶
Bases: SingleObjectTemplateResponseMixin
, ModelFormMixin
, ProcessFormView
get
¶
custom_wagtail_page_delete
¶
Currently, ProtectedError exception is not caught in Wagtail admin. This workaround shows warning to the user if the page model like Fund, Round can not be deleted instead of raising 500. More details at https://github.com/wagtail/wagtail/issues/1602 Once the issue is fixed in Wagtail core, we can remove this workaround.