toastdriven/django-tastypie — pull request #832 by acdha (2013-02-21 02:48:41+00:00)
Title: Return HTTP 406 when Accept is unsatisfiable

When the request includes a specific Accept list and the serializer does not
support any of the requested formats, it's appropriate to return an HTTP 406
Not Acceptable response.

As part of this patch, Api.wrap_view now handles ImmediateHttpResponse
exceptions as expected for consistency with behaviour in Resource methods.