Ticket #8376: 8376-r8418.diff
File 8376-r8418.diff, 680 bytes (added by , 16 years ago) |
---|
-
django/contrib/flatpages/middleware.py
7 7 if response.status_code != 404: 8 8 return response # No need to check for a flatpage for non-404 responses. 9 9 try: 10 return flatpage(request, request.path )10 return flatpage(request, request.path_info) 11 11 # Return the original response if any errors happened. Because this 12 12 # is a middleware, we can't assume the errors will be caught elsewhere. 13 13 except Http404: