summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_inlines/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/admin_inlines/models.py')
-rw-r--r--tests/regressiontests/admin_inlines/models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/regressiontests/admin_inlines/models.py b/tests/regressiontests/admin_inlines/models.py
index f2add00288..d7526d6020 100644
--- a/tests/regressiontests/admin_inlines/models.py
+++ b/tests/regressiontests/admin_inlines/models.py
@@ -2,6 +2,8 @@
Testing of admin inline formsets.
"""
+from __future__ import unicode_literals
+
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
@@ -30,7 +32,7 @@ class Child(models.Model):
parent = generic.GenericForeignKey()
def __unicode__(self):
- return u'I am %s, a child of %s' % (self.name, self.parent)
+ return 'I am %s, a child of %s' % (self.name, self.parent)
class Book(models.Model):
@@ -145,4 +147,4 @@ class ProfileCollection(models.Model):
class Profile(models.Model):
collection = models.ForeignKey(ProfileCollection, blank=True, null=True)
first_name = models.CharField(max_length=100)
- last_name = models.CharField(max_length=100) \ No newline at end of file
+ last_name = models.CharField(max_length=100)