diff options
| author | Aymeric Augustin | 2013-10-18 21:06:13 +0200 |
|---|---|---|
| committer | Aymeric Augustin | 2013-10-18 21:08:02 +0200 |
| commit | fbd16d85245184f40f869026cedc4e0440dde17b (patch) | |
| tree | bb3834645f45bb9cfd0dbe1c7bc811cf66effb8f /tests/models.py | |
| parent | bd345551eb1c70cf365c93cbc2883a3d809e6ae7 (diff) | |
| download | django-debug-toolbar-fbd16d85245184f40f869026cedc4e0440dde17b.tar.bz2 | |
Test that non-string view arguments are supported.
Close #43.
Diffstat (limited to 'tests/models.py')
| -rw-r--r-- | tests/models.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/models.py b/tests/models.py index e69de29..24358c0 100644 --- a/tests/models.py +++ b/tests/models.py @@ -0,0 +1,10 @@ +# coding: utf-8 + +from __future__ import unicode_literals + +from django.utils import six + + +class NonAsciiRepr(object): + def __repr__(self): + return 'nôt åscíì' if six.PY3 else 'nôt åscíì'.encode('utf-8') |
