From 70b93cd1fda37f5c29d58c43346852020de35de9 Mon Sep 17 00:00:00 2001 From: "Jean-Baptiste G." Date: Fri, 30 Aug 2024 18:06:18 +0200 Subject: [PATCH] Update views.py Revert on changes for compatibility purpose --- libreosteoweb/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libreosteoweb/api/views.py b/libreosteoweb/api/views.py index 9cb304e8..4fe52374 100644 --- a/libreosteoweb/api/views.py +++ b/libreosteoweb/api/views.py @@ -42,7 +42,7 @@ HttpResponseRedirect, Http404, HttpResponseBadRequest) from django.core.exceptions import SuspiciousOperation from django.shortcuts import resolve_url -from django.utils.http import is_safe_url +from django.utils.http import url_has_allowed_host_and_scheme from django.utils.translation import gettext_lazy as _ from django.utils.text import format_lazy from django.views import View