As a result, it's possible to construct and display a formset, but then
have that formset fail (with a "list index out of range error") on form
submission.
This manifested for me as the following: A model in the admin with
inlines; the inline was filled with 2023 inline objects, and the default
MAX_NUM_FORMS (1000 was in use. The page takes a long time to load, but it
*does* load; when you hit submit, you get the "list index out of range"
error as a 500 page, with no suggestion of the underlying problem.
I haven't tested, but AFAICT, the same problem will manifest with a lot
less data if you set MAX_NUM_FORMS to a lower value.
--
Ticket URL: <https://code.djangoproject.com/ticket/20872>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* owner: nobody => mburst
--
Ticket URL: <https://code.djangoproject.com/ticket/20872#comment:1>
* status: assigned => closed
* resolution: => worksforme
Comment:
This has been fixed with commit
https://github.com/django/django/commit/f9ab543720532400e8b0d490cdbe67ea09ae9c17.
total_form_count can't be larger than absolute_max.
--
Ticket URL: <https://code.djangoproject.com/ticket/20872#comment:2>
* resolution: worksforme => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/20872#comment:3>