1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

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

View File

@ -85,6 +85,8 @@ class CommentFormNode(template.Node):
context['display_form'] = False context['display_form'] = False
else: else:
context['display_form'] = True context['display_form'] = True
else:
context['display_form'] = True
context['target'] = '%s:%s' % (self.content_type.id, self.obj_id) context['target'] = '%s:%s' % (self.content_type.id, self.obj_id)
options = [] options = []
for var, abbr in (('photos_required', comments.PHOTOS_REQUIRED), for var, abbr in (('photos_required', comments.PHOTOS_REQUIRED),