calingen.views.generic
¶
View implementations with generic functionality.
Module Contents¶
Classes¶
Basically just a |
- class calingen.views.generic.RequestEnabledFormView(**kwargs)¶
Bases:
django.views.generic.edit.FormView
Basically just a
FormView
that makes therequest
available on the form.Notes
This view implementation is intended to be used together with
calingen.forms.generic.RequestEnabledForm
. In fact, an actual view will subclass this view and use a form that is a subclass ofRequestEnabledForm
.- get_form_kwargs(*args, **kwargs)¶
Add the
request
object to the form during initialization.