@register.simple_tag
def render_model_attributes(app_label, model_name):
    lst = []
    for name, opts in model_attributes(app_label, model_name).items():
        lst.append("  .. djangoadmin:attribute:: %s.%s.%s" % (app_label, model_name, name))
        lst.append('  ')
        description = unicode(opts['description'])
        if description:
            lst.append(description % "     %s")
            lst.append('  ')
    return '\n'.join(lst)
dataset/ETHPy150Open bmihelac/django-simpleadmindoc/simpleadmindoc/templatetags/simpleadmindoc_tags.py/render_model_attributes/swapped operands of `%`