From: yomguy Date: Wed, 19 Feb 2014 01:04:48 +0000 (+0100) Subject: fix pull courses for each department X-Git-Tag: 1.3-TC~5 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a31c2b11d2b0d65264a7cb6a7091b626c154d548;p=teleforma.git fix pull courses for each department --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index f05c5129..12e52ab1 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -250,7 +250,7 @@ class CourseListView(CourseAccessMixin, ListView): s = ServiceProxy(url) remote_list = s.teleforma.get_course_list(organization_name, department.name) for course_dict in remote_list['result']: - course = Course.objects.filter(code=course_dict['code']) + course = Course.objects.filter(code=course_dict['code'], department=department) if not course: course = Course() else: