Login

Printing inline formsets as UL / P

Author:
ikke
Posted:
August 25, 2009
Language:
HTML/template
Version:
Not specified
Tags:
django formset inline not-django-admin
Score:
0 (after 2 ratings)

By default all forms created using inlineformset_factory are displayed as tables (because there is only a .as_table method) and there are no .as_p or .as_ul methods in them, so you need to do that by hand.

1
2
3
{% for extraform in form.extra_forms %}
    {{ extraform.as_ul }}
{% endfor %}

More like this

Comments

Please login first before commenting.