X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/85b57aa2d25552d82260ce40fd9b1063dd7c3dd5..bb68c8efe90a6f818c2c26f36ef0e02c91ed6158:/apps/debug_toolbar/panels/version.py?ds=inline diff --git a/apps/debug_toolbar/panels/version.py b/apps/debug_toolbar/panels/version.py new file mode 100644 index 000000000..7ea6543ed --- /dev/null +++ b/apps/debug_toolbar/panels/version.py @@ -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 ''