def get_renderers(self):
try:<EOL><INDENT>source = self.get_object()<EOL><DEDENT>except (ImproperlyConfigured, APIException):<EOL><INDENT>self.renderer_classes = [RENDERER_MAPPING[i] for i in self.__class__.renderers]<EOL>return [RENDERER_MAPPING[i]() for i in self.__class__.renderers]<EOL><DEDENT>else:<EOL><INDENT>self.renderer_classes = [RENDERER_MAPPING[i] for i in source.__class__.renderers]<EOL>return [RENDERER_MAPPING[i]() for i in source.__class__.renderers]<EOL><DEDENT>
Instantiates and returns the list of renderers that this view can use.