Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise MiddlewareNotUsed in deprecated FlagConditionsMiddleware
Per the [Django documentation](https://docs.djangoproject.com/en/2.2/topics/http/middleware/#marking-middleware-as-unused) on marking middle as unused, this change raises `MiddlewareNotUsed` when initializing the deprecated `FlagConditionsMiddleware`. This way, Django takes the middleware out of the middleware process and the fact that this middleware no longer calls `get_response` and returns it for a request will not interrupt the flow of the request through other middleware.
- Loading branch information