diff --git a/django/contrib/comments/templatetags/comments.py b/django/contrib/comments/templatetags/comments.py
index 563a3ff..d275de5 100644
a
|
b
|
class BaseCommentNode(template.Node):
|
80 | 80 | content_type = ctype, |
81 | 81 | object_pk = smart_unicode(object_pk), |
82 | 82 | site__pk = settings.SITE_ID, |
83 | | is_public = True, |
84 | 83 | ) |
85 | | if getattr(settings, 'COMMENTS_HIDE_REMOVED', True): |
| 84 | if hasattr(self.comment_model,'is_public'): |
| 85 | qs.filter(is_public=True) |
| 86 | if getattr(settings, 'COMMENTS_HIDE_REMOVED', True) and hasattr(self.comment_model, 'is_removed'): |
86 | 87 | qs = qs.filter(is_removed=False) |
87 | 88 | |
88 | 89 | return qs |