refactor: Replace deprecated django.utils.http.urlquote
This commit is contained in:
parent
075aed7e9a
commit
b5d9e9b14c
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue