From f0560dfdb2adaa44fc739941a2a784c558ae6427 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 23 Mar 2009 21:07:02 +0000 Subject: Fixed #9282: added a generic comment moderation toolkit. See the documentation for details. This began life as (part of) James Bennett's comment-utils app, and was adapted to be part of Django by Thejaswi Puthraya and Jannis Leidel. Thanks, all! git-svn-id: http://code.djangoproject.com/svn/django/trunk@10122 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/comment_tests/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/regressiontests/comment_tests/models.py') diff --git a/tests/regressiontests/comment_tests/models.py b/tests/regressiontests/comment_tests/models.py index 28022e2848..62f416882c 100644 --- a/tests/regressiontests/comment_tests/models.py +++ b/tests/regressiontests/comment_tests/models.py @@ -20,3 +20,11 @@ class Article(models.Model): def __str__(self): return self.headline +class Entry(models.Model): + title = models.CharField(max_length=250) + body = models.TextField() + pub_date = models.DateField() + enable_comments = models.BooleanField() + + def __str__(self): + return self.title -- cgit v1.3