aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cramer2012-06-03 12:00:16 -0700
committerDavid Cramer2012-06-03 12:00:16 -0700
commit7b610e9150985a3350d79f763f9afb59433d7df6 (patch)
tree8fc09345ba103a3f879b2fe57525ca4dbaaf01cf
parent599d76e41c5728c0e342d55250690b2694bd2aad (diff)
parent8331e70299f1ec79077c17503ab5359cbbd7faa0 (diff)
downloaddjango-debug-toolbar-7b610e9150985a3350d79f763f9afb59433d7df6.tar.bz2
Merge pull request #285 from kmichel/master
Propagate handler403 value when wrapping urlconf
-rw-r--r--debug_toolbar/middleware.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py
index d24bcaf..af898f1 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.handler403 = urlconf.handler403
if hasattr(urlconf, 'handler404'):
new_urlconf.handler404 = urlconf.handler404
if hasattr(urlconf, 'handler500'):