Opened 9 years ago

Closed 9 years ago

#26538 closed Bug (fixed)

BaseInlineFormSet Has Inconsistent Fields For Forms

Reported by: David Sanders Owned by: nobody
Component: Forms Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Currently BaseInlineFormSet appends the FK name for the formset to the fields for the form Meta every time add_fields runs, so the first form in the formset does not see the FK as a field on the form when it is instantiated. Subsequent forms in the formset will see the field since it is added to the form Meta after add_fields runs.

Change History (5)

comment:1 by David Sanders, 9 years ago

Submitted PR #6503.

comment:2 by David Sanders, 9 years ago

Type: UncategorizedBug

comment:3 by Tim Graham, 9 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In a5c8a6ce:

Fixed #21332, #26538 -- Fixed inconsistent and duplicate form fields on inline formsets.

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