Skip to content

Commit

Permalink
Django 2.2 Fix: update simple_reverse reference.
Browse files Browse the repository at this point in the history
Taken from tkaemming#67
  • Loading branch information
ghedsouza committed Apr 17, 2020
1 parent be6cc1c commit b78e3aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subdomains/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b78e3aa

Please sign in to comment.