summaryrefslogtreecommitdiff
path: root/tests/dates/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dates/models.py')
-rw-r--r--tests/dates/models.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/dates/models.py b/tests/dates/models.py
index 7f710ce1ea..2ed092587f 100644
--- a/tests/dates/models.py
+++ b/tests/dates/models.py
@@ -9,9 +9,6 @@ class Article(models.Model):
categories = models.ManyToManyField("Category", related_name="articles")
- def __str__(self):
- return self.title
-
class Comment(models.Model):
article = models.ForeignKey(Article, models.CASCADE, related_name="comments")
@@ -19,9 +16,6 @@ class Comment(models.Model):
pub_date = models.DateField()
approval_date = models.DateField(null=True)
- def __str__(self):
- return 'Comment to %s (%s)' % (self.article.title, self.pub_date)
-
class Category(models.Model):
name = models.CharField(max_length=255)