In a template, I need to loop through a formset that consists of both bounded and empty forms, but the total number of forms in the formset is fixed. I need a way to distinguish apart bounded and empty forms as they are designed to be presented differently to the user.
Share
When iterating through your formset, check the
is_boundattribute.https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.is_bound