diff options
| author | Rob Hudson | 2008-09-09 14:48:36 -0700 | 
|---|---|---|
| committer | Rob Hudson | 2008-09-09 14:48:36 -0700 | 
| commit | 76a9d548f4f09cb1c54b0bc467a9a61c6d91fd96 (patch) | |
| tree | c61a3bfb3f3878226851089ad36ceea46cc32430 /debug_toolbar/panels/sql.py | |
| parent | cba0d3712c17d8607f8e56901db392aa84ac8b40 (diff) | |
| download | django-debug-toolbar-76a9d548f4f09cb1c54b0bc467a9a61c6d91fd96.tar.bz2 | |
Adding a `has_content` boolean to panels to avoid issues with checking if
content exists and displaying it in the templates.
Diffstat (limited to 'debug_toolbar/panels/sql.py')
| -rw-r--r-- | debug_toolbar/panels/sql.py | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index 2ca50ed..0a95533 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -29,6 +29,7 @@ class SQLDebugPanel(DebugPanel):      Panel that displays information about the SQL queries run while processing the request.      """      name = 'SQL' +    has_content = True      def title(self):          total_time = sum(map(lambda q: float(q['time']) * 1000, connection.queries)) | 
