diff options
| author | Daniel Roseman | 2010-01-05 22:58:26 +0800 | 
|---|---|---|
| committer | Rob Hudson | 2010-01-09 00:07:05 +0800 | 
| commit | 59ad3aa5aa3b8cc78fd237c2e5eaf2941c4f9e54 (patch) | |
| tree | 83fb0b93c0d305a1bac8acb1d20b96d3102682ff /debug_toolbar/panels/sql.py | |
| parent | 3f246ac43875dca9ffe316874cb3702b6089e1f2 (diff) | |
| download | django-debug-toolbar-59ad3aa5aa3b8cc78fd237c2e5eaf2941c4f9e54.tar.bz2 | |
Fix issue #33: ensure force_unicode doesn't convert non-strings.
Diffstat (limited to 'debug_toolbar/panels/sql.py')
| -rw-r--r-- | debug_toolbar/panels/sql.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index 9b6db22..7fa4423 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -95,7 +95,7 @@ class DatabaseStatTracker(util.CursorDebugWrapper):              stacktrace = tidy_stacktrace(traceback.extract_stack())              _params = ''              try: -                _params = simplejson.dumps([force_unicode(x) for x in params]) +                _params = simplejson.dumps([force_unicode(x, strings_only=True) for x in params])              except TypeError:                  pass # object not JSON serializable | 
