From 5e2fc825a438d088d1ff3c7ee8106cfde189290c Mon Sep 17 00:00:00 2001 From: sbontula Date: Fri, 12 Nov 2021 08:21:02 -0500 Subject: [PATCH] Django 2.2 changes --- subui/step.py | 2 +- subui/validators.py | 2 +- tests/test_validators.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/subui/step.py b/subui/step.py index 4bbfa6e..d30b365 100644 --- a/subui/step.py +++ b/subui/step.py @@ -5,7 +5,7 @@ from collections import OrderedDict import six -from django.core.urlresolvers import reverse +from django.urls import reverse from django.test import override_settings from .validators import BaseValidator diff --git a/subui/validators.py b/subui/validators.py index 3276d4f..ed83b31 100644 --- a/subui/validators.py +++ b/subui/validators.py @@ -2,7 +2,7 @@ import inspect from django.core.exceptions import ImproperlyConfigured -from django.core.urlresolvers import Resolver404, resolve +from django.urls import Resolver404, resolve from django.template.response import SimpleTemplateResponse from six.moves.urllib_parse import urlsplit, urlunsplit diff --git a/tests/test_validators.py b/tests/test_validators.py index 2319f42..23c8891 100644 --- a/tests/test_validators.py +++ b/tests/test_validators.py @@ -3,7 +3,7 @@ import mock from django.core.exceptions import ImproperlyConfigured -from django.core.urlresolvers import Resolver404 +from django.urls import Resolver404 from django.http.response import HttpResponse from django.template.response import SimpleTemplateResponse