Roles
Forms for creating and modifying user role objects
Group Form
- class integreat_cms.cms.forms.roles.group_form.GroupForm(**kwargs: Any)[source]
Bases:
CustomModelForm
Form for creating and modifying user group objects
Form fields:
permissions
: Permissions (ModelMultipleChoiceField
)
- Parameters:
kwargs (Any)
- __init__(**kwargs: Any) None [source]
Initialize placeholder model form
- Parameters:
**kwargs (Any) – The supplied keyword arguments
- Raises:
TypeError – If form is instantiated directly without an inheriting subclass
- Return type:
None
- property media[source]
Return all media required to render the widgets on this form.
Role Form
- class integreat_cms.cms.forms.roles.role_form.RoleForm(**kwargs: Any)[source]
Bases:
CustomModelForm
Form for creating and modifying user role objects
Form fields:
name
: Name (TypedChoiceField
)staff_role
: Staff role (BooleanField
)
- Parameters:
kwargs (Any)
- property media[source]
Return all media required to render the widgets on this form.