web.forms.account_forms.BaseAccountForm module

Module with the BaseAccountSerializer form class.

class web.forms.account_forms.BaseAccountForm.BaseAccountForm(*args, **kwargs)[source]

Bases: RequiredMarkerModelForm

The base form for core.models.Account.

Exposes all fields from the model that may be changed by the user. Other forms for core.models.Account should inherit from this.

Parameters:
class Meta[source]

Bases: object

Metadata class for the base form.

Other form metaclasses should inherit from this. These submetaclasses must not expose fields that are not listed here.

model

The model to serialize.

alias of Account

fields: ClassVar[list[str]] = ['mail_address', 'password', 'mail_host', 'protocol', 'mail_host_port', 'timeout', 'allow_insecure_connection']

Exposes all fields that the user should be able to change.

localized_fields = '__all__'

Localize all fields.

widgets: ClassVar[dict[str, type[Widget] | Widget]] = {'password': <django.forms.widgets.PasswordInput object>}

Allow initial values in the password field.

_meta = <django.forms.models.ModelFormOptions object>
base_fields = {'allow_insecure_connection': <django.forms.fields.BooleanField object>, 'mail_address': <django.forms.fields.CharField object>, 'mail_host': <django.forms.fields.CharField object>, 'mail_host_port': <django.forms.fields.IntegerField object>, 'password': <django.forms.fields.CharField object>, 'protocol': <django.forms.fields.TypedChoiceField object>, 'timeout': <django.forms.fields.IntegerField object>}
declared_fields = {}
property media

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