Login

Printing inline formsets as UL / P

Author:
ikke
Posted:
August 25, 2009
Language:
HTML/template
Version:
Not specified
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

  1. Bootstrap Accordian by Netplay4 5 years, 11 months ago
  2. Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
  3. Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
  4. Reusable form template with generic view by roldandvg 9 years ago
  5. Pagination Django with Boostrap by guilegarcia 9 years, 1 month ago

Comments

Please login first before commenting.