From e07fee6511ae64db6af5b40f769c7b58bac9311d Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 1 Sep 2005 03:06:47 +0000 Subject: [PATCH] Fixed bug in contrib comment_form template tag when hard-coded object IDs are used git-svn-id: http://code.djangoproject.com/svn/django/trunk@590 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/comments/templatetags/comments.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/contrib/comments/templatetags/comments.py b/django/contrib/comments/templatetags/comments.py index 0e290f102b3..b6f57a652b3 100644 --- a/django/contrib/comments/templatetags/comments.py +++ b/django/contrib/comments/templatetags/comments.py @@ -85,6 +85,8 @@ class CommentFormNode(template.Node): context['display_form'] = False else: context['display_form'] = True + else: + context['display_form'] = True context['target'] = '%s:%s' % (self.content_type.id, self.obj_id) options = [] for var, abbr in (('photos_required', comments.PHOTOS_REQUIRED),