From: Guillaume Pellerin Date: Thu, 19 Jan 2023 13:36:56 +0000 (+0100) Subject: fix import, cleanup X-Git-Tag: 2.8.0~22 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=13a05cccaf8df044c9c0e898a258421fb53df36d;p=teleforma.git fix import, cleanup --- 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