]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 17 Sep 2013 16:31:03 +0000 (18:31 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 17 Sep 2013 16:31:03 +0000 (18:31 +0200)
teleforma/views/core.py

index 3d1bcbb6b615c5c77da8d21ad2553b9d1e638d03..d8737d3e4249bb09294503278ce555e43f0c6e63 100644 (file)
@@ -240,7 +240,7 @@ class CourseListView(CourseAccessMixin, ListView):
         return [course.to_dict() for course in Course.objects.filter(department=department)]
 
     def pull(request, organization_name, department_name):
-        organization = organization.objects.get(name=organization_name)
+        organization = Organization.objects.get(name=organization_name)
         department = Department.objects.get(name=department_name, organization=organization)
         url = 'http://' + department.domain + '/json/'
         s = ServiceProxy(url)