Closed io2 closed 3 years ago
When using any of the formset_factorys to generate multiple forms, the select fields lose their values if the form is returned with an error.
formset_factory
This happens because the template renders field.name instead of field.html_name.
field.name
field.html_name
field.name is the same for all forms, field.html_name is unique for each form instance
When using any of the
formset_factory
s to generate multiple forms, the select fields lose their values if the form is returned with an error.This happens because the template renders
field.name
instead offield.html_name
.field.name
is the same for all forms,field.html_name
is unique for each form instance