From 76a9d548f4f09cb1c54b0bc467a9a61c6d91fd96 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 9 Sep 2008 14:48:36 -0700 Subject: Adding a `has_content` boolean to panels to avoid issues with checking if content exists and displaying it in the templates. --- debug_toolbar/panels/cache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'debug_toolbar/panels/cache.py') diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py index fa6bdd0..263b62b 100644 --- a/debug_toolbar/panels/cache.py +++ b/debug_toolbar/panels/cache.py @@ -76,6 +76,7 @@ class CacheDebugPanel(DebugPanel): Panel that displays the cache statistics. """ name = 'Cache' + has_content = True def __init__(self, request): # This is hackish but to prevent threading issues is somewhat needed -- cgit v1.2.3