Added debug_toolbar app to project.
[wolnelektury.git] / apps / debug_toolbar / panels / version.py
diff --git a/apps/debug_toolbar/panels/version.py b/apps/debug_toolbar/panels/version.py
new file mode 100644 (file)
index 0000000..7ea6543
--- /dev/null
@@ -0,0 +1,17 @@
+import django
+from debug_toolbar.panels import DebugPanel
+
+class VersionDebugPanel(DebugPanel):
+    """
+    Panel that displays the Django version.
+    """
+    name = 'Version'
+    
+    def title(self):
+        return 'Version: %s' % (django.get_version())
+
+    def url(self):
+        return ''
+
+    def content(self):
+        return ''