Opened 8 years ago

Closed 8 years ago

#27934 closed Bug (invalid)

modelformset_factory ignores max_num and returns 15 forms

Reported by: Marc Reid Owned by: nobody
Component: Uncategorized Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

modelformset_factory(MyModel, form=MyModelForm, max_num=4)
I have tried an array of options, but still it always returns 15 forms inside a template

return render(request, 'form.html', {"forms": forms})

template has simple
{% for form in forms %}

and will iterate through 15, always, regardless of the settings I put in above.

Change History (1)

comment:1 by Marc Reid, 8 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top