calingen.forms.generic

Implementations of django.forms.Form with generic functionality.

Module Contents

Classes

RequestEnabledForm

Form class with the request object available.

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’s Form, it accepts the keyword argument request 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.