management.views.settings ========================= .. py:module:: management.views.settings .. autoapi-nested-parse:: Settings views. Attributes ---------- .. autoapisummary:: management.views.settings.LOG_LEVELS Classes ------- .. autoapisummary:: management.views.settings.SettingsView management.views.settings.ChangeLogLevelView Module Contents --------------- .. py:data:: LOG_LEVELS :value: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] .. py:class:: SettingsView(security_feature = None, *args, **kwargs) Bases: :py:obj:`trustpoint.page_context.PageContextMixin`, :py:obj:`management.security.mixins.SecurityLevelMixin`, :py:obj:`django.views.generic.edit.FormView` Mixin which adds data to the context for the devices application. .. py:attribute:: template_name :value: 'management/settings.html' .. py:attribute:: form_class .. py:attribute:: success_url .. py:attribute:: page_category :value: 'management' .. py:attribute:: page_name :value: 'settings' .. py:method:: get_form_kwargs() Return the keyword arguments for instantiating the form. .. py:method:: form_valid(form) If the form is valid, redirect to the supplied URL. .. py:method:: form_invalid(form) If the form is invalid, render the invalid form. .. py:method:: get_context_data(**kwargs) Adds the page category and page_name for the device pages. :param kwargs: 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. .. py:class:: ChangeLogLevelView(**kwargs) Bases: :py:obj:`django.views.View` Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking. .. py:method:: post(request)