Offers
This package contains all forms for the offer application and modification
Contact Form
- class integreat_compass.cms.forms.offers.contact_form.ContactForm(**kwargs)
Bases:
CustomModelFormForm for creating and editing offer contacts
Form fields:
name: Name (CharField)email: Email (EmailField)phone: Phone number (CharField)
- property media
Return all media required to render the widgets on this form.
- prefix = 'contact'
Location Form
- class integreat_compass.cms.forms.offers.location_form.LocationForm(**kwargs)
Bases:
CustomModelFormForm for creating and editing locations
Form fields:
address: Address (CharField)lat: Latitude (DecimalField)long: Longitude (DecimalField)
- property media
Return all media required to render the widgets on this form.
- prefix = 'location'
Offer Form
- class integreat_compass.cms.forms.offers.offer_form.OfferForm(**kwargs)
Bases:
CustomModelFormForm for creating and editing offers
Form fields:
tags: Tags (ModelMultipleChoiceField)group_type: Group type (TypedChoiceField)mode_type: Lesson mode (TypedChoiceField)
- property media
Return all media required to render the widgets on this form.
- prefix = 'offer'
Offer Version Form
- class integreat_compass.cms.forms.offers.offer_version_form.OfferVersionForm(**kwargs)
Bases:
CustomModelFormForm for creating and editing offer versions
Form fields:
title: Title (CharField)description: Description (CharField)language: Language (ModelChoiceField)is_free: Free offer (BooleanField)
- property media
Return all media required to render the widgets on this form.
- prefix = 'offer_version'
Organization Form
- class integreat_compass.cms.forms.offers.organization_form.OrganizationForm(**kwargs)
Bases:
CustomModelFormForm for creating and editing organizations
Form fields:
- property media
Return all media required to render the widgets on this form.
- prefix = 'organization'