thunderbird_accounts.mail.admin.forms
Classes
|
Base class to use for custom email admin forms. |
|
Base class to use for custom email admin forms. |
- class thunderbird_accounts.mail.admin.forms.CustomAccountBaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]
Bases:
ModelFormBase class to use for custom email admin forms.
Form fields:
name: Name (CharField)active: Active (BooleanField)user: User (ModelChoiceField)
- clean()[source]
Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
- property media
Return all media required to render the widgets on this form.