aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/timer.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-24 10:42:43 +0100
committerAymeric Augustin2013-11-24 11:01:44 +0100
commitfe3df822111d3b56000deca354b0bceed7bde9cc (patch)
tree8fe21689037cd975f83e7f70480b96e0ba2e3b6a /debug_toolbar/panels/timer.py
parent7d24008ac3d70796c1502215c665311d2f21d6fd (diff)
downloaddjango-debug-toolbar-fe3df822111d3b56000deca354b0bceed7bde9cc.tar.bz2
Rename all panels consistently.
Enforce absolute imports to avoid clashing with built-in package names. Thanks Jannis for his feedback.
Diffstat (limited to 'debug_toolbar/panels/timer.py')
-rw-r--r--debug_toolbar/panels/timer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/panels/timer.py b/debug_toolbar/panels/timer.py
index 9a0fef3..900b624 100644
--- a/debug_toolbar/panels/timer.py
+++ b/debug_toolbar/panels/timer.py
@@ -1,4 +1,4 @@
-from __future__ import unicode_literals
+from __future__ import absolute_import, unicode_literals
try:
import resource
@@ -7,10 +7,10 @@ except ImportError:
import time
from django.template.loader import render_to_string
from django.utils.translation import ugettext as _
-from debug_toolbar.panels import DebugPanel
+from debug_toolbar.panels import Panel
-class TimerDebugPanel(DebugPanel):
+class TimerPanel(Panel):
"""
Panel that displays the time a response took in milliseconds.
"""
@@ -59,7 +59,7 @@ class TimerDebugPanel(DebugPanel):
self.record_stats(stats)
def nav_title(self):
- return _('Time')
+ return _('Timer')
def nav_subtitle(self):
stats = self.get_stats()