def model_doc(model):
    ctx = Context()
    ctx['opts'] = model._meta
    templates = ('simpleadmindoc/%s/%s.rst' % (model._meta.app_label,
        model.__name__.lower()),
                model._meta.app_label % 'simpleadmindoc/%s/model.rst', 
                'simpleadmindoc/model.rst')
    tmpl = select_template(templates)
    return tmpl.render(ctx)
dataset/ETHPy150Open bmihelac/django-simpleadmindoc/simpleadmindoc/generate.py/model_doc/swapped operands of `%`