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:
parent
887f6331d4
commit
e07fee6511
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue