aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Hudson2010-11-08 13:25:52 -0800
committerRob Hudson2010-11-08 13:31:07 -0800
commita388a4db29e854c48354b1c6fafdf0a1fc04e541 (patch)
treeb3b9281cbf4e5a7c351f2016e998c38e9210290d
parentd83df7141239a2ca6f43f0b96c91919641e36f3f (diff)
downloaddjango-debug-toolbar-a388a4db29e854c48354b1c6fafdf0a1fc04e541.tar.bz2
Added print style to hide toolbar, fixing issue #90.
-rw-r--r--NEWS2
-rw-r--r--debug_toolbar/templates/debug_toolbar/base.html1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5c0ba8d..35ac4ec 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ News for django-debug-toolbar
develop
-------
+* Added print style to hide the toolbar (issue 90)
+
* Fixed "Badly formatted SQL query plan" (issue 86)
* Fixed "SQL not selectable due to line chart" (issue 85)
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index 7f7a535..0fe64ca 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -1,4 +1,5 @@
{% load i18n %}
+<style type="text/css">@media print { #djDebug {display:none;}}</style>
<script type="text/javascript">
// <![CDATA[
var DEBUG_TOOLBAR_MEDIA_URL = "{{ DEBUG_TOOLBAR_MEDIA_URL }}";