django-debug-toolbar/django-debug-toolbar — pull request #551 by GomZik (2014-02-18 09:36:47+00:00)
Title: UnicodeDecode Exception

Environment:

Request Method: GET
Request URL: http://localhost:8000/events/events/ed/

Django Version: 1.4.3
Python Version: 2.7.4

Traceback:
File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
188. response = middleware_method(request, response)
File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/middleware.py" in process_response
86. new_response = panel.process_response(request, response)
File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/panel.py" in process_response
184. query['form'] = SQLSelectForm(auto_id=None, initial=copy(query))
File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py" in __init__
37. initial['hash'] = self.make_hash(initial)
File "/home/a_homza/env/ui/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py" in make_hash
83. items = [force_text(' '.join(item.splitlines())) for item in items]

Exception Type: UnicodeDecodeError at /events/events/ed/
Exception Value: 'ascii' codec can't decode byte 0xd0 in position 36: ordinal not in range(128)

The string that could not be encoded/decoded was: ` = '������