Related bug fixed

This commit is contained in:
Piotr Mitros
2012-01-24 20:18:20 -05:00
parent d0c8722da4
commit 5a5e65a918

View File

@@ -136,8 +136,8 @@ def index(request, course="6.002 Spring 2012", chapter="Using the System", secti
module_ids = dom.xpath("//course[@name=$course]/chapter[@name=$chapter]//section[@name=$section]//@id",
course=course, chapter=chapter, section=section)
module_object_preload = StudentModule.objects.filter(student=user,
module_id__in=module_ids)
module_object_preload = list(StudentModule.objects.filter(student=user,
module_id__in=module_ids))
module=render_module(user, request, module, module_object_preload)