0.0.11 fix get_content_for_section_ajax
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user