Permalink
Browse files

Add support for Django 2.x

  • Loading branch information...
lamby committed Nov 25, 2017
1 parent c6d67a1 commit 725c09b7b6d076ee4cd27b8d393ee48459846885
Showing with 6 additions and 0 deletions.
  1. +6 −0 django_keyerror/middleware.py
@@ -1,9 +1,15 @@
import time
import django
import logging
from .utils import report_response
from .app_settings import app_settings
if django.VERSION > (1, 10):
from django.utils.deprecation import MiddlewareMixin
else:
MiddlewareMixin = object
logger = logging.getLogger(__name__)

0 comments on commit 725c09b

Please sign in to comment.