From ea6e350f95f15de9031f487e39f2895f91d060ca Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:53:41 +0100 Subject: [PATCH 1/3] Supprime un fichier inutile --- zds/tutorialv2/views/display.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 zds/tutorialv2/views/display.py diff --git a/zds/tutorialv2/views/display.py b/zds/tutorialv2/views/display.py deleted file mode 100644 index e69de29bb2..0000000000 From 7e1fdc3f7eb78d3a8469a3b1d55a1e64a3b47baa Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:55:07 +0100 Subject: [PATCH 2/3] Supprime des imports inutiles dans goals.py --- zds/tutorialv2/views/goals.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zds/tutorialv2/views/goals.py b/zds/tutorialv2/views/goals.py index ce297c4f57..a8bd11c3d6 100644 --- a/zds/tutorialv2/views/goals.py +++ b/zds/tutorialv2/views/goals.py @@ -14,17 +14,15 @@ BooleanField, HiddenInput, ) -from django.http import JsonResponse, HttpResponse +from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.urls import reverse from django.utils.translation import gettext_lazy as _ -from django.views import View -from django.views.generic import TemplateView from django.views.generic.edit import BaseFormView from zds.tutorialv2 import signals from zds.tutorialv2.mixins import SingleContentFormViewMixin -from zds.tutorialv2.models.database import PublishableContent, PublishedContent +from zds.tutorialv2.models.database import PublishableContent from zds.tutorialv2.models.goals import Goal from zds.utils import get_current_user from zds.utils.paginator import ZdSPagingListView From 0bba6b62cd05e9d3d2223df0891d690fe7bc463e Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:55:35 +0100 Subject: [PATCH 3/3] Supprime des imports inutiles dans validations_opinions.py --- zds/tutorialv2/views/validations_opinions.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/zds/tutorialv2/views/validations_opinions.py b/zds/tutorialv2/views/validations_opinions.py index 334186fb76..3eb7409c99 100644 --- a/zds/tutorialv2/views/validations_opinions.py +++ b/zds/tutorialv2/views/validations_opinions.py @@ -1,10 +1,8 @@ import json from datetime import datetime -from django.conf import settings from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin -from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied from django.db.models import F from django.http import Http404, HttpResponse