thunderbird_accounts.mail.admin.forms

Classes

CustomAccountBaseForm([data, files, ...])

Base class to use for custom email admin forms.

CustomEmailBaseForm([data, files, instance, ...])

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: ModelForm

Base 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.

class thunderbird_accounts.mail.admin.forms.CustomEmailBaseForm(data=None, files=None, instance=None, save_as_new=False, prefix=None, queryset=None, **kwargs)[source]

Bases: BaseInlineFormSet

Base class to use for custom email admin forms.

clean()[source]

Hook for doing any extra formset-wide cleaning after Form.clean() has been called on every form. Any ValidationError raised by this method will not be associated with a particular form; it will be accessible via formset.non_form_errors()