diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-23 21:07:02 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-23 21:07:02 +0000 |
| commit | f0560dfdb2adaa44fc739941a2a784c558ae6427 (patch) | |
| tree | 96eff6021071b4ad77b1081ba21f12f5d8e8353c /tests/regressiontests/comment_tests/models.py | |
| parent | 44f3080226888eb709cc6e027321647964ebe64e (diff) | |
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
Diffstat (limited to 'tests/regressiontests/comment_tests/models.py')
| -rw-r--r-- | tests/regressiontests/comment_tests/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
