Skip to content

Commit

Permalink
Updating to Django 2.0 and Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
thanosd committed Jul 25, 2018
1 parent 9df84fa commit 0773347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maintenancemode/middleware.py
Expand Up @@ -4,7 +4,7 @@
import django

from django.conf import urls
from django.core import urlresolvers
from django.urls import get_resolver
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError:
Expand Down Expand Up @@ -50,7 +50,7 @@ def process_request(self, request):
return None

# Otherwise show the user the 503 page
resolver = urlresolvers.get_resolver(None)
resolver = get_resolver(None)

if django.VERSION < (1, 8):
callback, param_dict = resolver._resolve_special('503')
Expand Down

0 comments on commit 0773347

Please sign in to comment.