]> git.parisson.com Git - teleforma.git/commitdiff
fix module
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 19 Nov 2013 15:01:41 +0000 (16:01 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 19 Nov 2013 15:01:41 +0000 (16:01 +0100)
teleforma/views/core.py

index 4babc1d83b8df3693e5c725fc10b1e7f376fd27b..8d7e06cb34036fc44db6914b84ac0569cd7001d1 100644 (file)
@@ -236,6 +236,7 @@ class CourseListView(CourseAccessMixin, ListView):
 
     @jsonrpc_method('teleforma.get_course_list')
     def get_course_list(request, organization_name, department_name):
+        from teleforma.models import Organization, Department
         organization = Organization.objects.get(name=organization_name)
         department = Department.objects.get(organization=organization, name=department_name)
         return [course.to_dict() for course in Course.objects.filter(department=department)]