Skip to content

Commit

Permalink
Fix deprecated FlagConditionsMiddleware NOOP
Browse files Browse the repository at this point in the history
This change restores response generation to the FlagConditionsMiddleware instead of just `pass`ing. This is so that when the middleware is in-use it doesn't interrupt the process of sending the request through all of the configured middleware.
  • Loading branch information
willbarton committed Jun 2, 2020
1 parent a275cf1 commit 118a8fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flags/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def __init__(self, get_response):
"effect. It will be removed in a future version of Django-Flags. ",
FutureWarning,
)
self.get_response = get_response

def __call__(self, request):
pass
return self.get_response(request)

0 comments on commit 118a8fd

Please sign in to comment.