def add_section(request): name=request.POST.get('section_name') title=request.POST.get('section_title') language=str(request.LANGUAGE_CODE) next_index=int(request.POST.get('section_index')) new_section=Section(section_name=name, section_title=title, section_lang=language, section_author=request.user, section_index=next_index) new_section.save() new_content=Content(section_id=new_section, text="No se ha definido contenido para esta sección") new_content.save() return HttpResponseRedirect("/")