diff options
| author | Aymeric Augustin | 2013-10-26 14:06:21 +0200 |
|---|---|---|
| committer | Aymeric Augustin | 2013-10-26 14:15:23 +0200 |
| commit | 8525bfc7fb2e868edf24fb5c6fea00bc871d7489 (patch) | |
| tree | 548b38900a9d1ba0c8b189fd6642936278f366b6 /tests/urls.py | |
| parent | 3a5492b471d907bdb66c627914264ee1f2d4e537 (diff) | |
| download | django-debug-toolbar-8525bfc7fb2e868edf24fb5c6fea00bc871d7489.tar.bz2 | |
Don't crash on non ascii bytestrings in db params.
Thanks Karen Tracey for the report. Fix #422.
Diffstat (limited to 'tests/urls.py')
| -rw-r--r-- | tests/urls.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/urls.py b/tests/urls.py index 4bed492..8a88385 100644 --- a/tests/urls.py +++ b/tests/urls.py @@ -1,3 +1,5 @@ +# coding: utf-8 + """ URLpatterns for the debug toolbar. @@ -22,6 +24,7 @@ urlpatterns = patterns('tests.views', url(r'^resolving3/(.+)/$', 'resolving_view', { 'arg2' : 'default' }), url(r'^regular/(?P<title>.*)/$', 'regular_view'), url(r'^non_ascii_context/$', 'non_ascii_context'), + url(r'^non_ascii_bytes_in_db_params/$', 'new_user', {'username': 'djàngó'.encode('utf-8')}), url(r'^non_ascii_request/$', 'regular_view', {'title': NonAsciiRepr()}), url(r'^new_user/$', 'new_user'), url(r'^execute_sql/$', 'execute_sql'), |
