0.0.11 fix get_content_for_section_ajax

This commit is contained in:
SDE
2023-11-26 19:40:52 +03:00
parent 40f0f28717
commit 7acde9d0bd
2 changed files with 8 additions and 4 deletions

View File

@@ -22,7 +22,6 @@ def get_content_for_section_ajax(request):
try:
data = request.POST.dict()
if not data and request.body:
data = json.loads(request.body)
@@ -39,8 +38,11 @@ def get_content_for_section_ajax(request):
section = Section.objects.get(url=data['section_url'])
from .funcs import get_sections
Dict = {
'section': section
'cur_section': section,
'sections': get_sections(),
}
html = render_to_string('pages/content/c_projectiing_section.html', Dict, request=request)