Organizations
Forms for creating and modifying organization objects
Organization Form
- class integreat_cms.cms.forms.organizations.organization_form.OrganizationForm(**kwargs: Any)[source]
 Bases:
CustomModelFormForm for creating and modifying organization objects
Form fields:
name: Name (CharField)slug: Slug (SlugField)icon: Logo (ModelChoiceField)website: Website (URLField)
- Parameters:
 kwargs (Any)
- __init__(**kwargs: Any) None[source]
 Initialize organization form
- Parameters:
 **kwargs (Any) – The supplied keyword arguments
- Return type:
 None
- clean_name() str[source]
 Validate if form fields name is not already in use for another organization in the same region (see Overriding the clean() method) :return: The name which is unique per region
- 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.
- save(commit: bool = True) Any[source]
 This method extends the default
save()-method of the baseModelFormto provide debug logging- Parameters:
 commit (bool) – Whether or not the changes should be written to the database
- Returns:
 The saved object returned by The save() method
- Return type:
 Any