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.FormForm class with the
requestobject available.- Parameters:
request – Beside
*argsand**kwargs, which make this implementation compatible with Django’sForm, it accepts the keyword argumentrequestand 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.