From: Guillaume Pellerin Date: Tue, 12 Nov 2013 16:07:32 +0000 (+0100) Subject: fix orga X-Git-Tag: 1.3-TC~12 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=25556bbe1d61e5a2466c010caf19a316ba295cae;p=teleforma.git fix orga --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 5b40ff7b..5bff31a1 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -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: