@register.simple_tag
def mk(m, icons=''):

    r =  u'<a class="hashnav item dontwrap" id="detail-%(id)s"'
    r += u'href="%(url)s" title="%(name)s">'
    if 'w' in icons:
        r += '<img class="watched-member" id="watching-%(id)s" src="%(icon_path)s/eye.png">'
    elif 'x' in icons:
        r += '<img class="can-delete-member" id="can-delete-%(id)s" src="%(icon_path)s/X.png">'
    r += '&nbsp;%(name)s</a>'

    c = dict(id=m.id, url=m.get_absolute_url(), name=m.name,
             icon_path= '%simg' % settings.STATIC_URL)

    return r % c
Serialize the provided object.
dataset/ETHPy150Open ofri/Open-Knesset/mks/templatetags/mks_tags.py/mk--crossover with--dataset/ETHPy150Open StackStorm/st2/st2common/st2common/logging/formatters.py/serialize_object