diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py
index c0613dc..4737932 100644
a
|
b
|
class BaseCommentAbstractModel(models.Model):
|
22 | 22 | related_name="content_type_set_for_%(class)s") |
23 | 23 | object_pk = models.TextField(_('object ID')) |
24 | 24 | content_object = generic.GenericForeignKey(ct_field="content_type", fk_field="object_pk") |
| 25 | is_public = models.BooleanField(_('is public'), default=True, |
| 26 | help_text=_('Uncheck this box to make the comment effectively ' \ |
| 27 | 'disappear from the site.')) |
| 28 | is_removed = models.BooleanField(_('is removed'), default=False, |
| 29 | help_text=_('Check this box if the comment is inappropriate. ' \ |
| 30 | 'A "This comment has been removed" message will ' \ |
| 31 | 'be displayed instead.')) |
25 | 32 | |
26 | 33 | # Metadata about the comment |
27 | 34 | site = models.ForeignKey(Site) |
… |
… |
class Comment(BaseCommentAbstractModel):
|
56 | 63 | # Metadata about the comment |
57 | 64 | submit_date = models.DateTimeField(_('date/time submitted'), default=None) |
58 | 65 | ip_address = models.IPAddressField(_('IP address'), blank=True, null=True) |
59 | | is_public = models.BooleanField(_('is public'), default=True, |
60 | | help_text=_('Uncheck this box to make the comment effectively ' \ |
61 | | 'disappear from the site.')) |
62 | | is_removed = models.BooleanField(_('is removed'), default=False, |
63 | | help_text=_('Check this box if the comment is inappropriate. ' \ |
64 | | 'A "This comment has been removed" message will ' \ |
65 | | 'be displayed instead.')) |
66 | 66 | |
67 | 67 | # Manager |
68 | 68 | objects = CommentManager() |