summaryrefslogtreecommitdiff
path: root/tests/admin_views/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_views/models.py')
-rw-r--r--tests/admin_views/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py
index aa91eef57e..f1c77e2872 100644
--- a/tests/admin_views/models.py
+++ b/tests/admin_views/models.py
@@ -17,6 +17,7 @@ from django.db import models
from django.utils.encoding import python_2_unicode_compatible
+@python_2_unicode_compatible
class Section(models.Model):
"""
A simple section that links to articles, to test linking to related items
@@ -24,6 +25,9 @@ class Section(models.Model):
"""
name = models.CharField(max_length=100)
+ def __str__(self):
+ return self.name
+
@property
def name_property(self):
"""