aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/version.py
blob: 3d82dd092e9b02cf86b2cf48d768ca67f08628dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import django
from django.utils.translation import ugettext_lazy as _
from debug_toolbar.panels import DebugPanel

class VersionDebugPanel(DebugPanel):
    """
    Panel that displays the Django version.
    """
    name = 'Version'

    def nav_title(self):
        return _('Django Version')

    def nav_subtitle(self):
        return django.get_version()

    def url(self):
        return ''

    def content(self):
        return ''