diff options
| author | Aymeric Augustin | 2013-11-12 22:40:20 +0100 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-11-12 22:40:20 +0100 | 
| commit | 1062d9cf878b4bdc6f0e0f6434668cd7eb289998 (patch) | |
| tree | e3e400deec4a8c772fbc025e9144b0a380715b43 /debug_toolbar/panels/__init__.py | |
| parent | f48039e3bad9e24a59a25ed5636b428e11784da9 (diff) | |
| download | django-debug-toolbar-1062d9cf878b4bdc6f0e0f6434668cd7eb289998.tar.bz2 | |
Make it possible for panels to provide URLs and views.
Fix #448.
Diffstat (limited to 'debug_toolbar/panels/__init__.py')
| -rw-r--r-- | debug_toolbar/panels/__init__.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py index e60a5e6..47ca996 100644 --- a/debug_toolbar/panels/__init__.py +++ b/debug_toolbar/panels/__init__.py @@ -37,6 +37,12 @@ class DebugPanel(object):      def dom_id(self):          return 'djDebug%sPanel' % (self.name.replace(' ', '')) +    # URLs for panel-specific views + +    @classmethod +    def get_urls(cls): +        return [] +      # Titles and subtitles      def nav_title(self): | 
