toastdriven/django-tastypie — pull request #1135 by czue (2014-02-26 16:42:27+00:00)
Title: workaround for exception handling edge case

don't return a bad response if underlying code happens to throw an exception that has a `.response` defined on it that isn't actually an `HttpResponse`. For example http://benoitc.github.io/restkit/api/restkit.errors.ResourceError-class.html

This prevents more confusing errors later when you try and treat the response like an `HttpResponse`