feat(integrations): добавлен фундамент для интеграций с внешними сервисами
- Создано приложение integrations с базовой архитектурой - BaseIntegration (абстрактная модель) для всех интеграций - BaseIntegrationService (абстрактный сервисный класс) - IntegrationConfig модель для тумблеров в system_settings - Добавлена вкладка "Интеграции" в системные настройки - Заготовка UI с тумблерами для включения интеграций Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
13
myproject/integrations/views.py
Normal file
13
myproject/integrations/views.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user