]> 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:02:03 +0000 (16:02 +0100)
teleforma/views/core.py

index 23ccc35d7bd27fa69d9bd06bbeaabf8d19644d8d..ae44a4b4a222c11766e9f1e6e186254e040fac7c 100644 (file)
@@ -240,6 +240,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)]