Contacts
Forms for creating and modifying contact objects
Contact Form
- class integreat_cms.cms.forms.contacts.contact_form.ContactForm(**kwargs: Any)[source]
Bases:
CustomModelForm
Form for creating and modifying contact objects
Form fields:
area_of_responsibility
: Area of responsibility (CharField
)name
: Name (CharField
)location
: Location (ModelChoiceField
)email
: Email address (EmailField
)phone_number
: Phone number (CharField
)mobile_phone_number
: Mobile phone number (CharField
)website
: Website (URLField
)
- Parameters:
kwargs (Any)
- clean() dict[str, Any] [source]
Validate the selected location, see
django.forms.Form.clean()
- clean_mobile_phone_number() str [source]
Validate the mobile phone number field (see Overriding the clean() method). The number will be converted to the international format, i.e. +XX (X) XXXXXXXX.
- Returns:
The reformatted phone number
- Return type:
- clean_phone_number() str [source]
Validate the phone number field (see Overriding the clean() method). The number will be converted to the international format, i.e. +XX (X) XXXXXXXX.
- Returns:
The reformatted phone number
- Return type:
- property media[source]
Return all media required to render the widgets on this form.