In Django formsets (v. 1.9), there is an option min_num in the formset_factory function which specifies the minimum number of forms in the formset.
A view might look like this:
class ExampleForm(forms.Form):
msg = forms.CharField()
ExFormSet = formset_factory(ExampleForm, min_num=1)
ex_set = ExFormSet()
context = {'ex_set': exp_set)
return render(request, 'app-name/test.html', context)
And the template might look like this:
<form action="" method="post">
<table>
{{ ex_set }}
</table>
</form>
However Django will always render one more form then given in the min_num argument.
Is the reason for this the general Django/Python design, starting to count at zero or am I misunderstanding the use of the min_num argument? In the docs as I understand it, it says that the variable is just used for validation.