]> git.parisson.com Git - teleforma.git/commitdiff
fix orga
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 12 Nov 2013 16:07:32 +0000 (17:07 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 12 Nov 2013 16:07:32 +0000 (17:07 +0100)
teleforma/views/core.py

index 5b40ff7b676080f300c0f5b87b74aa4cf561307c..5bff31a154723aa6d682236ef966a99f49c12cb9 100644 (file)
@@ -241,6 +241,7 @@ class CourseListView(CourseAccessMixin, ListView):
         return [course.to_dict() for course in Course.objects.filter(department=department)]
 
     def pull(request, organization_name):
+        from teleforma.models import *
         organization = Organization.objects.get(name=organization_name)
         departments = Department.objects.filter(organization=organization)
         for department in departments: