summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-09-01 03:06:47 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-09-01 03:06:47 +0000
commite07fee6511ae64db6af5b40f769c7b58bac9311d (patch)
treea10d02be0b2b2f597e8bc2ca14245cf8f85d7f09
parent887f6331d43c1b4c3cfbc1dc492dad7c04f99bf9 (diff)
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
-rw-r--r--django/contrib/comments/templatetags/comments.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/comments/templatetags/comments.py b/django/contrib/comments/templatetags/comments.py
index 0e290f102b..b6f57a652b 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),