Skip to content

Commit

Permalink
Remove keyword only argument for RequestsMiddleware
Browse files Browse the repository at this point in the history
This causes django to fail when attempting to load middleware clases
because handlers are passed in as args.
  • Loading branch information
bradykieffer committed Dec 3, 2020
1 parent 7f75f59 commit 02bbc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/logging_v2/handlers/middleware/request.py
Expand Up @@ -42,7 +42,7 @@ def _get_django_request():
class RequestMiddleware(MiddlewareMixin):
"""Saves the request in thread local"""

def __init__(self, *, get_response=None):
def __init__(self, get_response=None):
self.get_response = get_response

def process_request(self, request):
Expand Down

0 comments on commit 02bbc90

Please sign in to comment.