web.forms.account_forms.BaseAccountForm module¶
Module with the BaseAccountSerializer form class.
- class web.forms.account_forms.BaseAccountForm.BaseAccountForm(*args, **kwargs)[source]¶
Bases:
RequiredMarkerModelFormThe base form for
core.models.Account.Exposes all fields from the model that may be changed by the user. Other forms for
core.models.Accountshould inherit from this.- class Meta[source]¶
Bases:
objectMetadata class for the base form.
Other form metaclasses should inherit from this. These submetaclasses must not expose fields that are not listed here.
- 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.
- _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.