calingen.forms.generic
¶
Implementations of django.forms.Form
with generic functionality.
Module Contents¶
Classes¶
Form class with the |
- class calingen.forms.generic.RequestEnabledForm(*args, request=None, **kwargs)¶
Bases:
django.forms.Form
Form class with the
request
object available.- Parameters:
request – Beside
*args
and**kwargs
, which make this implementation compatible with Django’sForm
, it accepts the keyword argumentrequest
and stores it within the object.
Notes
This form implementation is intended to be used together with
calingen.views.generic.RequestEnabledFormView
.In fact, an actual form will subclass this form and use a view that is a subclass of
RequestEnabledFormView
.