management.views.settingsΒΆ
Settings views.
AttributesΒΆ
ClassesΒΆ
Mixin which adds data to the context for the devices application. |
|
Intentionally simple parent class for all views. Only implements |
Module ContentsΒΆ
- class management.views.settings.SettingsView(security_feature=None, *args, **kwargs)[source]ΒΆ
Bases:
trustpoint.page_context.PageContextMixin,management.security.mixins.SecurityLevelMixin,django.views.generic.edit.FormViewMixin which adds data to the context for the devices application.
- Parameters:
security_feature (management.security.SecurityFeature)
- get_context_data(**kwargs)[source]ΒΆ
Adds the page category and page_name for the device pages.
- Parameters:
kwargs (dict) β The keyword arguments are passed to super().get_context_data() if it exists. Otherwise, kwargs is returned with the added page_category.
- Returns:
The context data including the page_category information.
- Return type:
dict[str, Any]