Form definitions for extensions.
- class SettingsForm(extension, *args, **kwargs)¶
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.
- set_key_value(key, value)¶
Set the value for an extension settings key.
key (unicode) – The settings key.
value (object) – The settings value.
Save the instance.