summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_custom_urls
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/admin_custom_urls')
-rw-r--r--tests/regressiontests/admin_custom_urls/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/regressiontests/admin_custom_urls/models.py b/tests/regressiontests/admin_custom_urls/models.py
index facb4b52e7..4bc9ce561e 100644
--- a/tests/regressiontests/admin_custom_urls/models.py
+++ b/tests/regressiontests/admin_custom_urls/models.py
@@ -2,13 +2,15 @@ from functools import update_wrapper
from django.contrib import admin
from django.db import models
+from django.utils.encoding import python_2_unicode_compatible
+@python_2_unicode_compatible
class Action(models.Model):
name = models.CharField(max_length=50, primary_key=True)
description = models.CharField(max_length=70)
- def __unicode__(self):
+ def __str__(self):
return self.name