Code

Ticket #9303: 9303.diff

File 9303.diff, 909 bytes (added by thejaswi_puthraya, 5 years ago)

git-patch against the latest checkout

Line 
1diff --git a/django/contrib/comments/templatetags/comments.py b/django/contrib/comments/templatetags/comments.py
2index 9b12ada..9f8180a 100644
3--- a/django/contrib/comments/templatetags/comments.py
4+++ b/django/contrib/comments/templatetags/comments.py
5@@ -3,7 +3,6 @@ from django.template.loader import render_to_string
6 from django.conf import settings
7 from django.contrib.contenttypes.models import ContentType
8 from django.contrib import comments
9-from django.db.models import FieldDoesNotExist
10 from django.utils.encoding import smart_unicode
11 
12 register = template.Library()
13@@ -81,7 +80,6 @@ class BaseCommentNode(template.Node):
14             content_type = ctype,
15             object_pk    = smart_unicode(object_pk),
16             site__pk     = settings.SITE_ID,
17-            is_public    = True,
18         )
19         
20         # The is_public and is_removed fields are implementation details of the