@register.simple_tag(takes_context=True)
def fields_for(context, form, template="includes/form_fields.html"):
    context["form_for_fields"] = form
    return get_template(template).render(context)
Renders fields for a form with an optional template choice.
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/core/templatetags/mezzanine_tags.py/fields_for