trustpoint.page_context¶
This module contains page category objects providing the corresponding subcategories.
Attributes¶
Classes¶
Mixin which adds data to the context for the devices application. |
Module Contents¶
- class trustpoint.page_context.PageContextMixin[source]¶
Mixin which adds data to the context for the devices application.
- get_context_data(**kwargs)[source]¶
Adds the page category and page_name for the device pages.
- Parameters:
kwargs (Any) – 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]