aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
authorJannis Leidel2012-05-14 20:22:59 +0200
committerJannis Leidel2012-05-14 20:22:59 +0200
commit599d76e41c5728c0e342d55250690b2694bd2aad (patch)
tree66c93ed2a270209e601eb01f8d5d955d6ea93e1e /debug_toolbar
parentf99833a5eb6302bcb62f593cc5483abc9fe0c9fe (diff)
parent51dc81a7b472fe44c2ca18ed99a42fc747344141 (diff)
downloaddjango-debug-toolbar-599d76e41c5728c0e342d55250690b2694bd2aad.tar.bz2
Merge branch 'master' of github.com:django-debug-toolbar/django-debug-toolbar
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/templates/debug_toolbar/redirect.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html
index 250e3e8..d911778 100644
--- a/debug_toolbar/templates/debug_toolbar/redirect.html
+++ b/debug_toolbar/templates/debug_toolbar/redirect.html
@@ -4,9 +4,12 @@
</head>
<body>
<h1>HttpResponseRedirect</h1>
-<p>{% trans 'Location' %}: <a href="{{ redirect_to }}">{{ redirect_to }}</a></p>
+<p>{% trans 'Location' %}: <a id="redirect_to" href="{{ redirect_to }}">{{ redirect_to }}</a></p>
<p class="notice">
{% trans "The Django Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes. You can click the above link to continue with the redirect as normal. If you'd like to disable this feature, set the <code>DEBUG_TOOLBAR_CONFIG</code> dictionary's key <code>INTERCEPT_REDIRECTS</code> to <code>False</code>." %}
</p>
+<script type="text/javascript">
+ document.getElementById('redirect_to').focus();
+</script>
</body>
</html>