From b78e3aa8ca63025a8b3118ec3d3f739abb514663 Mon Sep 17 00:00:00 2001 From: Edward D'Souza Date: Fri, 17 Apr 2020 10:48:16 -0400 Subject: [PATCH] Django 2.2 Fix: update simple_reverse reference. Taken from https://github.com/tkaemming/django-subdomains/pull/67 --- subdomains/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subdomains/utils.py b/subdomains/utils.py index d6dbfa0..4bcd06c 100644 --- a/subdomains/utils.py +++ b/subdomains/utils.py @@ -5,7 +5,10 @@ from urllib.parse import urlunparse from django.conf import settings -from django.core.urlresolvers import reverse as simple_reverse +try: + from django.core.urlresolvers import reverse as simple_reverse +except: + from django.urls import reverse as simple_reverse def current_site_domain():