web.forms.correspondent_forms.BaseCorrespondentForm module

Module with the BaseCorrespondentForm form class.

class web.forms.correspondent_forms.BaseCorrespondentForm.BaseCorrespondentForm(*args, **kwargs)[source]

Bases: RequiredMarkerModelForm

The form for core.models.Correspondent.

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

Parameters:
class Meta[source]

Bases: object

Metadata class for the form.

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

model

The model behind the form.

alias of Correspondent

fields: ClassVar[list[str]] = ['real_name']

Exposes only the core.models.Correspondent.Correspondent.real_name field.

localized_fields = '__all__'

Localize all fields.

_meta = <django.forms.models.ModelFormOptions object>
base_fields = {'real_name': <django.forms.fields.CharField object>}
declared_fields = {}
property media

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