{% extends "base.html" %} {% load examples_tags %} {% block title %}Customizing Rendering Templates{% endblock %} {% block content %}
You can customize fieldset rendering by overriding _tmpl_table
, _tmpl_ul
and _tmpl_p
. Template tuple's elements are listed below with the correct order:
As you can see it's the same with standard rendering parameters except the fieldset_html
. In fact django-formfieldset
is using the same values with django.forms.Form
in other elements.
Following is an example of custom fieldset templates to render fieldsets as actual FIELDSET
tags using the contact form from simple example. Note that we don't need enclosing TABLE
s in the template code.