From: Guillaume Pellerin Date: Mon, 29 May 2023 15:13:23 +0000 (+0200) Subject: fix import X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=79c85e37f465a82572d4ef49d4bd40c46fb1915f;p=teleforma.git fix import --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 70c3bfa8..0f514bee 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -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 = []