aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debug_toolbar/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/models.py b/debug_toolbar/models.py
index c9a12d8..4e624fa 100644
--- a/debug_toolbar/models.py
+++ b/debug_toolbar/models.py
@@ -51,9 +51,9 @@ def patch_root_urlconf():
reverse('djdt:render_panel')
except NoReverseMatch:
urlconf_module = import_module(settings.ROOT_URLCONF)
- urlconf_module.urlpatterns += patterns('', # noqa
+ urlconf_module.urlpatterns = patterns('', # noqa
url(r'^__debug__/', include(debug_toolbar.urls)),
- )
+ ) + urlconf_module.urlpatterns
clear_url_caches()