From fbd16d85245184f40f869026cedc4e0440dde17b Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 18 Oct 2013 21:06:13 +0200 Subject: Test that non-string view arguments are supported. Close #43. --- tests/models.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/models.py') 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') -- cgit v1.2.3