Fixing sequentials nested inside of verticals, provides a path to sequentials nested in sequentials. Changes jump_to to redirect to courseware index.

This commit is contained in:
Arjun Singh
2012-08-31 04:24:52 -07:00
parent d815d50aee
commit 32cb0897e9
2 changed files with 14 additions and 8 deletions

View File

@@ -218,8 +218,11 @@ def jump_to(request, course_id, location):
raise Http404("This location is not in any class: {0}".format(location))
# Rely on index to do all error handling and access control.
return index(request, course_id, chapter, section, position)
return redirect('courseware_position',
course_id=course_id,
chapter=chapter,
section=section,
position=position)
@ensure_csrf_cookie
def course_info(request, course_id):
"""