Matthew Schinckel  committed fc6e2d6

Set response.request when we caught an error.

  • Participants
  • Parent commits ec660d0

Comments (0)

Files changed (1)

File repose/

             response = super(ApiView, self).dispatch(request, *args, **kwargs)
         except http.BaseHttpResponse, response:
             # This sets the variable `response` to be the object that was raised, if it was a subclass of http.BaseHttpResponse. This enables us to throw a response from arbitrarily deep in the stack.
+            response.request = request
             except AttributeError: