{% extends "base.html" %} {% block title %}Inline Formset{% endblock %} {% block extrahead %} {% endblock %} {% block content %}
{% comment %} {% endcomment %}
{{ form.as_p }}

Order details

{% for form in formset.forms %} {% endfor %}
Product Quantity
{% for fld in form.hidden_fields %}{{ fld }}{% endfor %} {% if form.instance.pk %}{{ form.DELETE }}{% endif %} {{ form.product }} {{ form.quantity }}

{{ formset.management_form }}

{% endblock %}