from django import template
register = template.Library()


@register.simple_tag
def editable(comment, current_user):
    return comment.editable(current_user)


@register.simple_tag
def destroyable(comment, current_user):
    return comment.destroyable(current_user)


@register.simple_tag
def published(comment):
    return comment.status == 'p'

159a0bf05cd32f8fecc1b0079cb2eaead263e6e0
<mask token>


@register.simple_tag
def editable(comment, current_user):
    return comment.editable(current_user)


@register.simple_tag
def destroyable(comment, current_user):
    return comment.destroyable(current_user)


<mask token>

<mask token>


@register.simple_tag
def editable(comment, current_user):
    return comment.editable(current_user)


@register.simple_tag
def destroyable(comment, current_user):
    return comment.destroyable(current_user)


@register.simple_tag
def published(comment):
    return comment.status == 'p'

<mask token>
register = template.Library()


@register.simple_tag
def editable(comment, current_user):
    return comment.editable(current_user)


@register.simple_tag
def destroyable(comment, current_user):
    return comment.destroyable(current_user)


@register.simple_tag
def published(comment):
    return comment.status == 'p'

from django import template
register = template.Library()


@register.simple_tag
def editable(comment, current_user):
    return comment.editable(current_user)


@register.simple_tag
def destroyable(comment, current_user):
    return comment.destroyable(current_user)


@register.simple_tag
def published(comment):
    return comment.status == 'p'
