djblets.extensions.forms¶
Form definitions for extensions.
- class SettingsForm(extension, *args, **kwargs)¶
Bases:
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)¶
Initialize the form.
- set_key_value(key, value)¶
Set the value for an extension settings key.
- save_instance()¶
Save the instance.
- __annotations__ = {}¶
- declared_fields = {}¶