from django.views.generic import TemplateView from user_roles.mixins import OwnerRequiredMixin class IntegrationsListView(OwnerRequiredMixin, TemplateView): """Страница настроек интеграций (доступна только владельцу)""" template_name = "system_settings/integrations.html" def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) from system_settings.models import IntegrationConfig context['integration_choices'] = IntegrationConfig.INTEGRATION_CHOICES return context