Ticket #6784: 6784.patch

File 6784.patch, 796 bytes (added by Matthias Kestenholz, 16 years ago)
  • django/contrib/comments/templatetags/comments.py

    diff --git a/django/contrib/comments/templatetags/comments.py b/django/contrib/comments/templatetags/comments.py
    index 959cec4..11c81a7 100644
    a b class DoCommentForm:  
    206206                    kwargs[option] = True
    207207                    kwargs['rating_options'] = args
    208208                elif option in ('is_public'):
    209                     kwargs[option] = (args == 'true')
     209                    kwargs[option] = (args == 'true' or args == 'yes')
    210210                else:
    211211                    raise template.TemplateSyntaxError, "%r tag got invalid parameter '%s'" % (tokens[0], option)
    212212        return CommentFormNode(content_type, obj_id_lookup_var, obj_id, self.free, **kwargs)
Back to Top