The horizon.forms.base ModuleΒΆ

class horizon.forms.base.DateForm(*args, **kwargs)[source]

Bases: django.forms.forms.Form

A simple form for selecting a start date.

DateForm.base_fields = {'month': <django.forms.fields.ChoiceField object at 0x5c79910>, 'year': <django.forms.fields.ChoiceField object at 0x5cc0b90>}
DateForm.media
class horizon.forms.base.SelfHandlingForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingMixin, django.forms.forms.Form

A base Form class which includes processing logic in its subclasses.

SelfHandlingForm.api_error(message)[source]

Adds an error to the form’s error dictionary after validation based on problems reported via the API. This is useful when you wish for API errors to appear as errors on the form rather than using the messages framework.

SelfHandlingForm.base_fields = {}
SelfHandlingForm.media
class horizon.forms.base.SelfHandlingMixin(request, *args, **kwargs)[source]

Bases: object

Previous topic

The horizon.forms.views Module

Next topic

The horizon.forms.fields Module

This Page