calingen.views.generic

View implementations with generic functionality.

Module Contents

Classes

RequestEnabledFormView

Basically just a FormView that makes the request available on the form.

class calingen.views.generic.RequestEnabledFormView(**kwargs)

Bases: django.views.generic.edit.FormView

Basically just a FormView that makes the request 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 of RequestEnabledForm.

get_form_kwargs(*args, **kwargs)

Add the request object to the form during initialization.