diff --git a/oauth2_provider/middleware.py b/oauth2_provider/middleware.py index 45dc2aca1..17ba6c35f 100644 --- a/oauth2_provider/middleware.py +++ b/oauth2_provider/middleware.py @@ -21,6 +21,7 @@ class OAuth2TokenMiddleware: It also adds "Authorization" to the "Vary" header, so that django's cache middleware or a reverse proxy can create proper cache keys. """ + def __init__(self, get_response): self.get_response = get_response diff --git a/tox.ini b/tox.ini index 857049cf5..f9ca24806 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ python = 3.5: py35 3.6: py36 3.7: py37 - 3.8: py38, docs + 3.8: py38, docs, flake8 3.9: py39 [pytest]