summaryrefslogtreecommitdiff
path: root/tests/regressiontests/queries
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/queries')
-rw-r--r--tests/regressiontests/queries/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py
index 8c34b50e93..6328776e91 100644
--- a/tests/regressiontests/queries/models.py
+++ b/tests/regressiontests/queries/models.py
@@ -6,6 +6,7 @@ from __future__ import unicode_literals
import threading
from django.db import models
+from django.utils import six
class DumbCategory(models.Model):
@@ -122,7 +123,7 @@ class Number(models.Model):
num = models.IntegerField()
def __unicode__(self):
- return unicode(self.num)
+ return six.text_type(self.num)
# Symmetrical m2m field with a normal field using the reverse accesor name
# ("valid").