From 13a05cccaf8df044c9c0e898a258421fb53df36d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 19 Jan 2023 14:36:56 +0100 Subject: [PATCH] fix import, cleanup --- teleforma/models/core.py | 1 + teleforma/views/core.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 3315dafd..7c717976 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -462,6 +462,7 @@ class Conference(models.Model): if settings.DEBUG: requests.post(f"{settings.CHANNEL_URL}{reverse('teleforma-live-conference-notify')}", {'id': self.id}) else: + import httpx transport = httpx.HTTPTransport(uds=settings.CHANNEL_URL) client = httpx.Client(transport=transport) response = client.post(f"http://{reverse('teleforma-live-conference-notify')}", diff --git a/teleforma/views/core.py b/teleforma/views/core.py index a718aa68..985c912e 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -62,10 +62,6 @@ from jsonrpc import jsonrpc_method from jsonrpc.proxy import ServiceProxy from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response -# The fact that you are presently reading this means that you have had -# knowledge of the CeCILL license and that you accept its terms. -# -# Authors: Guillaume Pellerin from rest_framework.views import APIView from teleforma.models.crfpa import Home, Student, Training from teleforma.models.notification import Notification, notify -- 2.39.5