Jump to >


class SiteSettingsForm(siteconfig, *args, **kwargs)[source]

Bases: django.forms.forms.Form

A base form for loading/saving settings for a SiteConfiguration. This is meant to be subclassed for different settings pages. Any fields defined by the form will be loaded/saved automatically.

__init__(siteconfig, *args, **kwargs)[source]

Load the settings into the form.

The default values in the form will be the values in the settings.

This also handles setting disabled fields based on the disabled_fields and disabled_reasons variables set on this form.


Saves settings from the form.