diff options
| author | kmichel | 2012-05-31 16:31:42 +0300 | 
|---|---|---|
| committer | kmichel | 2012-05-31 16:31:42 +0300 | 
| commit | 6207ea9d54bccc0cab0913b1b638aec29858e70a (patch) | |
| tree | 878d3fabd6414a8b742b4884ab5aadd46e125796 /debug_toolbar/middleware.py | |
| parent | 599d76e41c5728c0e342d55250690b2694bd2aad (diff) | |
| download | django-debug-toolbar-6207ea9d54bccc0cab0913b1b638aec29858e70a.tar.bz2 | |
Propagate handler403 value when wrapping urlconf
Diffstat (limited to 'debug_toolbar/middleware.py')
| -rw-r--r-- | debug_toolbar/middleware.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index d24bcaf..6979c8d 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -84,6 +84,8 @@ class DebugToolbarMiddleware(object):                  new_urlconf.urlpatterns = debug_toolbar.urls.urlpatterns + \                          list(urlconf.urlpatterns) +                if hasattr(urlconf, 'handler403'): +                    new_urlconf.handler404 = urlconf.handler403                  if hasattr(urlconf, 'handler404'):                      new_urlconf.handler404 = urlconf.handler404                  if hasattr(urlconf, 'handler500'): | 
