Offer Templates
Forms for creating and modifying offer objects
Offer Template Form
- class integreat_cms.cms.forms.offer_templates.offer_template_form.OfferTemplateForm(*args: Any, **kwargs: Any)[source]
Bases:
CustomModelFormForm for creating and modifying offer template objects
Form fields:
name: Name (CharField)slug: Slug (SlugField)thumbnail: Thumbnail URL (URLField)url: URL (URLField)post_data: POST parameter (JSONField)use_postal_code: Use postal code (TypedChoiceField)supported_by_app_in_content: Supported by app in content (BooleanField)is_zammad_form: Is Zammad form (BooleanField)
- Parameters:
args (Any)
kwargs (Any)
- __init__(*args: Any, **kwargs: Any) None[source]
Initialize offer template form
- Parameters:
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Return type:
None
- clean() dict[source]
Validate form fields which depend on each other, see
django.forms.Form.clean()- Returns:
The cleaned form data
- Return type:
- clean_post_data() dict[source]
Validate the post data field (see Overriding the clean() method)
- Returns:
The valid post data
- Return type:
- clean_slug() str[source]
Validate the slug field (see Overriding the clean() method)
- Returns:
A unique slug based on the input value
- Return type:
- property media[source]
Return all media required to render the widgets on this form.