Forms#

class plinth.forms.DomainSelectionForm(show_none=False, *args, **kwargs)[source]#

Form for selecting a domain name.

__init__(show_none=False, *args, **kwargs)[source]#
property media#

Return all media required to render the widgets on this form.

class plinth.forms.CheckboxSelectMultipleWithReadOnly(attrs=None, choices=())[source]#

Multiple checkbox widget that allows setting individual fields readonly.

To mark a feature as readonly an option, pass a dict instead of a string for its label, of the form: {‘label’: ‘option label’, ‘disabled’: True}.