@contextfunction
def last_updated(context, object=None, verbose=False):
    "The humanized datetime of the last update to an object"

    request = context['request']

    response_format = 'html'
    if 'response_format' in context:
        response_format = context['response_format']

    updated = object.last_updated
    return Markup(render_to_string('core/tags/last_updated',
                                   {'updated': updated,
                                    'verbose': verbose},
                                   context_instance=RequestContext(request),
                                   response_format=response_format))
dataset/ETHPy150Open treeio/treeio/treeio/core/templatetags/object.py/last_updated/original