Returns a dict that is passed through to Renderer.render(), as the `renderer_context` keyword argument.
(self)
| 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 | """ |