Opened 22 months ago

Last modified 22 months ago

#27679 new Cleanup/optimization

Document that empty formsets display min_num+extra forms

Reported by: Lorenzo Peña Owned by: nobody
Component: Documentation Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I already read #22628

To me: min_num is an option for validation and extra is an option for presentation
Currently, in an empty formset, you get min_num+extra empty forms, I think it should be max(min_num, extra) instead

Change History (2)

comment:1 Changed 22 months ago by Tim Graham

Component: UncategorizedForms
Summary: Formsets: min_num and extraEmpty formsets should display max(min_num, extra) rather than min_num+extra
Type: UncategorizedCleanup/optimization

You should say a little more to strengthen your proposal. For example, what are the ramifications for backwards compatibility? What does the documentation say about this?

comment:2 Changed 22 months ago by Tim Graham

Component: FormsDocumentation
Summary: Empty formsets should display max(min_num, extra) rather than min_num+extraDocument that empty formsets display min_num+extra forms
Triage Stage: UnreviewedAccepted

Looks like this was considered previously and rejected due to backwards compatibility. Tentatively accepting as a documentation enhancement pending no further arguments to change the behavior.

Note: See TracTickets for help on using tickets.
Back to Top