Jump to >

This documentation covers Djblets 2.0. You can see the latest Djblets documentation or all other versions.


class SettingsForm(extension, *args, **kwargs)[source]

Bases: djblets.forms.forms.key_value_form.KeyValueForm

Settings form for extension configuration.

A base form for loading/saving settings for an extension. This is meant to be overridden by extensions to provide configuration pages. Any fields defined by the form will be loaded and saved automatically.

__init__(extension, *args, **kwargs)[source]
set_key_value(key, value)[source]

Set the value for an extension settings key.

  • key (unicode) – The settings key.
  • value (object) – The settings value.

Save the instance.

declared_fields = {}[source]