From: Guillaume Pellerin Date: Tue, 19 Nov 2013 14:53:36 +0000 (+0100) Subject: fix warning X-Git-Tag: 1.3-TC~9 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=18b3efc7d0c52617a6502690c029df032e49b903;p=teleforma.git fix warning --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index ba69bd46..4babc1d8 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -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: