cdh.core.views.base module
- class cdh.core.views.base.FormSetUpdateView(**kwargs)[source]
Bases:
View
Generic update view that uses a formset. This allows you to edit multiple forms of the same type on the same page.
Source: ETCL-portal https://github.com/UiL-OTS-labs/etcl (written by Ty Mees)
- extra = 0
- form = None
- pre_validation(formset)[source]
This method can be overridden to manipulate the formset before validation
- queryset = None
- succes_url = None
- class cdh.core.views.base.RedirectActionView(**kwargs)[source]
Bases:
RedirectView
This base view extends generic.RedirectView by adding a new method that is called before getting the redirect url.
To be used for redirectViews that handle an action during it’s request, as an alternative to doing that stuff in get_redirect_url. (It’s cleaner)