Commit 840c72ce authored by Ben Waters's avatar Ben Waters

same iterable

parent 9e90b65c
......@@ -132,7 +132,7 @@ def nextCourses(remainingReqCourses, taken):
for course in remainingReqCourses:
reqs = set()
c = Course.objects.get(title=course)
for prereq in c.prerequisites:
for prereq in c.prerequisites.all():
reqs.add(prereq)
#for coreq in course.coreq:
# reqs.add(coreq)
......
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