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: CustomModelForm

Form for creating and modifying offer template objects

Form fields:

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:

dict

clean_post_data() dict[source]

Validate the post data field (see Overriding the clean() method)

Returns:

The valid post data

Return type:

dict

clean_slug() str[source]

Validate the slug field (see Overriding the clean() method)

Returns:

A unique slug based on the input value

Return type:

str

property media[source]

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