diff options
| author | Idan Gazit | 2009-08-12 15:07:09 +0300 | 
|---|---|---|
| committer | Idan Gazit | 2009-08-12 15:07:09 +0300 | 
| commit | 59874f33145722c6bb2d1fedb3d0679e6ce2caba (patch) | |
| tree | 6101324eaf137ff2b8781958268b2ce8a3e80381 /debug_toolbar/panels/template.py | |
| parent | 463aa185a001f72b7c906209920cd70932123157 (diff) | |
| download | django-debug-toolbar-59874f33145722c6bb2d1fedb3d0679e6ce2caba.tar.bz2 | |
Proper handling of template panel title
Diffstat (limited to 'debug_toolbar/panels/template.py')
| -rw-r--r-- | debug_toolbar/panels/template.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py index 985a9d8..6eb826f 100644 --- a/debug_toolbar/panels/template.py +++ b/debug_toolbar/panels/template.py @@ -7,6 +7,7 @@ from django.dispatch import Signal  from django.template.context import get_standard_processors  from django.template.loader import render_to_string  from django.test.signals import template_rendered +from django.template.defaultfilters import pluralize  from debug_toolbar.panels import DebugPanel  # Code taken and adapted from Simon Willison and Django Snippets: @@ -45,7 +46,7 @@ class TemplateDebugPanel(DebugPanel):          return 'Templates'      def title(self): -        return 'Template path{{ template_dirs|length|pluralize }}:' +        return 'Template path%s:' % pluralize(len(self.templates))      def url(self):          return '' | 
