We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f6b4c commit e10217eCopy full SHA for e10217e
feincms3/root/middleware.py
@@ -80,8 +80,8 @@ def inner(request):
80
request.resolver_match
81
and not isinstance(response, _UseRootMiddlewareResponse)
82
):
83
- # Response is not a 404 OR the path can be resolved and running
84
- # the middleware hasn't been requested explicitly.
+ # Response is not a 404 OR the 404 comes from a resolved view
+ # which also didn't return a _UseRootMiddlewareResponse.
85
return response
86
qs = queryset(request) if callable(queryset) else queryset._clone()
87
if page := qs.filter(path=request.path_info).first():
0 commit comments