def render_item(item, template_name=None):
    model_name = item.content_object._meta.verbose_name_raw

    template_list = [template_name,] if template_name else []
    template_list.extend([
        {'model': model_name } % 'tumblelog/includes/%(model)s.html',
        'tumblelog/includes/default.html'
    ])

    t = select_template(template_list)

    return t.render(template.Context({
        'object' : item.content_object,
        'object_id' : item.id,
        'content_type' : item.content_type,
        'item': item,
        'MEDIA_URL': settings.MEDIA_URL
    }))
dataset/ETHPy150Open myles/django-basic-tumblelog/src/tumblelog/templatetags/tumblelog_tags.py/render_item/swapped operands of `%`