summaryrefslogtreecommitdiff
path: root/tests/admin_utils/models.py
diff options
context:
space:
mode:
authorCollin Anderson <cmawebsite@gmail.com>2017-06-09 12:36:09 -0400
committerTim Graham <timograham@gmail.com>2017-06-09 13:28:50 -0400
commit7c9cb1ed37354c184fe0438ecae923d5be711c86 (patch)
tree32953158d70c189106ab0adfabccb417bcadd345 /tests/admin_utils/models.py
parent0877989c94130079930419e867ff55fa1fb4f5a0 (diff)
Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.
Diffstat (limited to 'tests/admin_utils/models.py')
-rw-r--r--tests/admin_utils/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/admin_utils/models.py b/tests/admin_utils/models.py
index dafb24e342..7b9c08a2f7 100644
--- a/tests/admin_utils/models.py
+++ b/tests/admin_utils/models.py
@@ -18,6 +18,9 @@ class Article(models.Model):
hist = models.CharField(max_length=100, verbose_name=_("History"))
created = models.DateTimeField(null=True)
+ def __str__(self):
+ return self.title
+
def test_from_model(self):
return "nothing"