diff options
Diffstat (limited to 'tests/null_fk_ordering/models.py')
| -rw-r--r-- | tests/null_fk_ordering/models.py | 9 |
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 |
