aboutsummaryrefslogtreecommitdiffstats
path: root/tests/models.py
blob: 78c1eb8edfbd876db858b59eb3cfbedfd0e8ec43 (plain)
1
2
3
4
5
6
7
8
9
10
# coding: utf-8

from __future__ import absolute_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')