From eb55fe1e411f0e6f67bcd3c87da65151b90da394 Mon Sep 17 00:00:00 2001 From: SDE Date: Sun, 26 Nov 2023 20:10:43 +0300 Subject: [PATCH] 0.0.13 services for section --- ServicesApp/js_views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ServicesApp/js_views.py b/ServicesApp/js_views.py index 13a0df3..9b4fbb8 100644 --- a/ServicesApp/js_views.py +++ b/ServicesApp/js_views.py @@ -38,11 +38,14 @@ def get_content_for_section_ajax(request): section = Section.objects.get(url=data['section_url']) + services = section.rel_services_for_section.filter(enable=True).order_by('order') + from .funcs import get_sections Dict = { 'cur_section': section, 'sections': get_sections(), + 'services': services } html = render_to_string('pages/content/c_projectiing_section.html', Dict, request=request)