refactor: Replace deprecated django.utils.http.urlquote

This commit is contained in:
Jennifer Richards 2023-05-12 18:27:51 -03:00
parent 075aed7e9a
commit b5d9e9b14c
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E
4 changed files with 5 additions and 4 deletions

View file

@ -8,6 +8,7 @@ import oidc_provider.lib.claims
from functools import wraps, WRAPPER_ASSIGNMENTS
from urllib.parse import quote as urlquote
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
@ -15,7 +16,6 @@ from django.core.exceptions import PermissionDenied
from django.db.models import Q
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.utils.http import urlquote
import debug # pyflakes:ignore

View file

@ -3,10 +3,11 @@
import functools
from urllib.parse import quote as urlquote
from django.urls import reverse
from django.http import HttpResponseRedirect
from django.utils.http import urlquote
def nomcom_private_key_required(view_func):

View file

@ -1,12 +1,12 @@
# Copyright The IETF Trust 2013-2020, All Rights Reserved
from functools import wraps
from urllib.parse import quote as urlquote
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.utils.http import urlquote
from ietf.ietfauth.utils import has_role
from ietf.doc.models import Document

View file

@ -10,11 +10,11 @@ import re
import requests
from email.utils import parsedate_to_datetime
from urllib.parse import quote as urlquote
from django.conf import settings
from django.utils import timezone
from django.utils.encoding import smart_bytes, force_str
from django.utils.http import urlquote
import debug # pyflakes:ignore