summaryrefslogtreecommitdiff
path: root/tests/null_fk_ordering
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-30 09:13:23 +0200
committerGitHub <noreply@github.com>2020-04-30 09:13:23 +0200
commit555e3a848e7ac13580371c7eafbc89195fee6ea9 (patch)
treef3db796d8b7c9764d77da9444b4ca30150e6d65d /tests/null_fk_ordering
parentbb13711451157d5081c2d2a297820f6bc131ac27 (diff)
downloaddjango-555e3a848e7ac13580371c7eafbc89195fee6ea9.tar.gz
Removed unused __str__() methods in tests models.
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
Diffstat (limited to 'tests/null_fk_ordering')
-rw-r--r--tests/null_fk_ordering/models.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/null_fk_ordering/models.py b/tests/null_fk_ordering/models.py
index 82f3fed9f9..f42ff7b8d5 100644
--- a/tests/null_fk_ordering/models.py
+++ b/tests/null_fk_ordering/models.py
@@ -20,9 +20,6 @@ class Article(models.Model):
class Meta:
ordering = ['author__name']
- def __str__(self):
- return 'Article titled: %s' % self.title
-
# These following 4 models represent a far more complex ordering case.
class SystemInfo(models.Model):
@@ -38,9 +35,6 @@ class Post(models.Model):
forum = models.ForeignKey(Forum, models.SET_NULL, null=True)
title = models.CharField(max_length=32)
- def __str__(self):
- return self.title
-
class Comment(models.Model):
post = models.ForeignKey(Post, models.SET_NULL, null=True)
@@ -48,6 +42,3 @@ class Comment(models.Model):
class Meta:
ordering = ['post__forum__system_info__system_name', 'comment_text']
-
- def __str__(self):
- return self.comment_text