]> git.parisson.com Git - teleforma.git/commitdiff
add import
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 25 Jan 2021 16:32:28 +0000 (17:32 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 25 Jan 2021 16:32:28 +0000 (17:32 +0100)
teleforma/views/core.py

index 2b4ac368b14d809ad29a9a6ba2e44a6bb144476d..8c4859c274f299820bb7ad85243ba39bbc0d4311 100644 (file)
@@ -292,9 +292,11 @@ class CourseListView(CourseAccessMixin, ListView):
 
     @jsonrpc_method('teleforma.get_course_type_list')
     def get_course_type_list(request):
+        from teleforma.models import CourseType
         return [course_type.to_dict() for course_type in CourseType.objects.all()]
 
     def pull(request, organization_name):
+        from teleforma.models import Organization, Department
         organization = Organization.objects.get(name=organization_name)
         departments = Department.objects.filter(organization=organization)
         for department in departments: