Roles
This package contains all views related to roles/groups
Role Form View
- class integreat_cms.cms.views.roles.role_form_view.RoleFormView(**kwargs)[source]
Bases:
TemplateView
View for the role form
- extra_context = {'current_menu_item': 'roles'}[source]
The context dict passed to the template (see
ContextMixin
)
- get(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse [source]
Render
RoleForm
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
HttpResponse
- post(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse [source]
Submit
RoleForm
and saveGroup
object- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
HttpResponse
- template_name = 'roles/role_form.html'[source]
The template to render (see
TemplateResponseMixin
)