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.FormViewBasically just a
FormViewthat makes therequestavailable 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
requestobject to the form during initialization.