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
This commit is contained in:
Adrian Holovaty 2005-09-01 03:06:47 +00:00
parent 887f6331d4
commit e07fee6511
1 changed files with 2 additions and 0 deletions

View File

@ -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),