From 18b3efc7d0c52617a6502690c029df032e49b903 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 19 Nov 2013 15:53:36 +0100 Subject: [PATCH] fix warning --- teleforma/views/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5