Commit d69a596b authored by Ben Waters's avatar Ben Waters

adding .all()s

parent 3d9f2f7a
......@@ -9,8 +9,8 @@ def programCourses(program):
print requirements
for requirement in requirements:
print requirement
for coursegroup in requirement.coursegroup:
for course in coursegroup.courses:
for coursegroup in requirement.coursegroup.all():
for course in coursegroup.courses.all():
courses.append(course)
return courses
......
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