]> 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:35:06 +0000 (18:35 +0200)
teleforma/views/core.py

index 419e36d992f65c9fdfa3d990ce098f52768455d9..0c7934d027d4961496dd56bbfe37532dff8c3671 100644 (file)
@@ -244,7 +244,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)