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

index ba69bd46aaac8916f7eb762105a7966b456bec81..4babc1d83b8df3693e5c725fc10b1e7f376fd27b 100644 (file)
@@ -241,7 +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 *
+        from teleforma.models import Organization, Department
         organization = Organization.objects.get(name=organization_name)
         departments = Department.objects.filter(organization=organization)
         for department in departments: