MCPcopy Index your code
hub / github.com/encode/django-rest-framework / get_renderer_context

Method get_renderer_context

rest_framework/views.py:211–223  ·  view source on GitHub ↗

Returns a dict that is passed through to Renderer.render(), as the `renderer_context` keyword argument.

(self)

Source from the content-addressed store, hash-verified

209 }
210
211 def get_renderer_context(self):
212 """
213 Returns a dict that is passed through to Renderer.render(),
214 as the `renderer_context` keyword argument.
215 """
216 # Note: Additionally 'response' will also be added to the context,
217 # by the Response object.
218 return {
219 'view': self,
220 'args': getattr(self, 'args', ()),
221 'kwargs': getattr(self, 'kwargs', {}),
222 'request': getattr(self, 'request', None)
223 }
224
225 def get_exception_handler_context(self):
226 """

Callers 1

finalize_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected