Returns a dict that is passed through to EXCEPTION_HANDLER, as the `context` argument.
(self)
| 223 | } |
| 224 | |
| 225 | def get_exception_handler_context(self): |
| 226 | """ |
| 227 | Returns a dict that is passed through to EXCEPTION_HANDLER, |
| 228 | as the `context` argument. |
| 229 | """ |
| 230 | return { |
| 231 | 'view': self, |
| 232 | 'args': getattr(self, 'args', ()), |
| 233 | 'kwargs': getattr(self, 'kwargs', {}), |
| 234 | 'request': getattr(self, 'request', None) |
| 235 | } |
| 236 | |
| 237 | def get_view_name(self): |
| 238 | """ |