@register.render_tag
def set_short_url_for(context, token):
    obj = context[token.split_contents()[1]]
    obj.set_short_url()
    return ""
Sets the ``short_url`` attribute of the given model for share
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/core/templatetags/mezzanine_tags.py/set_short_url_for