summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/admin_scripts/models.py')
-rw-r--r--tests/regressiontests/admin_scripts/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/regressiontests/admin_scripts/models.py b/tests/regressiontests/admin_scripts/models.py
index da803d0174..cd96052098 100644
--- a/tests/regressiontests/admin_scripts/models.py
+++ b/tests/regressiontests/admin_scripts/models.py
@@ -1,11 +1,13 @@
from django.db import models
+from django.utils.encoding import python_2_unicode_compatible
+@python_2_unicode_compatible
class Article(models.Model):
headline = models.CharField(max_length=100, default='Default headline')
pub_date = models.DateTimeField()
- def __unicode__(self):
+ def __str__(self):
return self.headline
class Meta: