

@register.filter
def render_upload(upload, opts_str=''):
    '\n    Render a single ``FileUpload`` model instance using the\n    appropriate render template for its mime type.\n\n    Expects options to be in the format "key=val:key2=val2", just like\n    the embed syntax. Options are parsed into a dictionary and passed\n    to ``render_upload``. (A ``template_path`` option can be passed\n    and it will be used as the search path for rendering templates.)\n\n    Just wraps ``adminfiles.utils.render_upload``.\n\n    '
    return utils.render_upload(upload, **parse_options(opts_str))

dataset/ETHPy150Open carljm/django-adminfiles/adminfiles/templatetags/adminfiles_tags.py render_upload/original