Commit 57d0dd1b by Calen Pennington

Pass location to get_containing_courses

parent 55771159
...@@ -110,7 +110,7 @@ def edit_item(request): ...@@ -110,7 +110,7 @@ def edit_item(request):
lms_link = "{lms_base}/courses/{course_id}/jump_to/{location}".format( lms_link = "{lms_base}/courses/{course_id}/jump_to/{location}".format(
lms_base=settings.LMS_BASE, lms_base=settings.LMS_BASE,
# TODO: These will need to be changed to point to the particular instance of this problem in the particular course # TODO: These will need to be changed to point to the particular instance of this problem in the particular course
course_id=modulestore().get_containing_courses()[0].id, course_id=modulestore().get_containing_courses(item.location)[0].id,
location=item.location, location=item.location,
) )
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment