]> git.parisson.com Git - teleforma.git/commitdiff
fix import
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 15:13:23 +0000 (17:13 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 15:13:23 +0000 (17:13 +0200)
teleforma/views/core.py

index 70c3bfa846913b8cb1844c67bc58b57f06549954..0f514beef956e4d8f9e35bfd0d02f1b1afede51c 100644 (file)
@@ -208,6 +208,7 @@ class PeriodAccessMixin(View):
         return [period.name for period in Period.objects.filter(department=department)]
 
     def pull(request, organization_name):
+        from teleforma.models import Organization, Department
         organization = Organization.objects.get(name=organization_name)
         departments = Department.objects.filter(organization=organization)
         periods_new = []