[Answer]-Django – displaying a single field from inline formset

1👍

Iterate over forms in the formset:

{% for form in formset %}
    {{ form.phone_number }}
{% endfor %}

See documentation on formsets:

The formset gives you the ability to iterate over the forms in the formset and display them as you would with a regular form:

>>> formset = ArticleFormSet()
>>> for form in formset:
...     print(form.as_table())
👤jpic

Leave a comment