From 7ccf55c3dea992130cdc77632be39cf6900a762e Mon Sep 17 00:00:00 2001 From: Oscar Cortez Date: Thu, 10 Nov 2022 12:29:21 -0500 Subject: [PATCH] Remove urlquote as it was deprecated in Django 4.X --- src/wiki/decorators.py | 2 +- src/wiki/templatetags/wiki_tags.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wiki/decorators.py b/src/wiki/decorators.py index 422c17ba..cd2e14a3 100644 --- a/src/wiki/decorators.py +++ b/src/wiki/decorators.py @@ -7,7 +7,7 @@ from django.shortcuts import get_object_or_404 from django.shortcuts import redirect from django.template.loader import render_to_string from django.urls import reverse -from django.utils.http import urlquote +from urllib.parse import quote as urlquote from wiki.conf import settings from wiki.core.exceptions import NoRootURL diff --git a/src/wiki/templatetags/wiki_tags.py b/src/wiki/templatetags/wiki_tags.py index f5b29a32..cb20352c 100644 --- a/src/wiki/templatetags/wiki_tags.py +++ b/src/wiki/templatetags/wiki_tags.py @@ -7,7 +7,7 @@ from django.contrib.contenttypes.models import ContentType from django.db.models import Model from django.forms import BaseForm from django.template.defaultfilters import striptags -from django.utils.http import urlquote +from urllib.parse import quote as urlquote from django.utils.safestring import mark_safe from wiki import models -- 2.45.2