Shouldn't this be:

return self.serializer.content_types.get(short_format, 'application/json')

?

That means if there is a corresponding content type for short_format, use it, otherwise use the full 'application/json'.