Opened 10 years ago

Closed 10 years ago

#24599 closed Bug (duplicate)

BaseInlineFormSet.add_fields(self, form, index) add field to form._meta multiple times

Reported by: Malyshev Alex Owned by: nobody
Component: Forms Version: 1.8
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

In method BaseInlineFormSet.add_fields(self, form, index):

 if form._meta.fields:
            if isinstance(form._meta.fields, tuple):
                form._meta.fields = list(form._meta.fields)
            form._meta.fields.append(self.fk.name)

Forms in InlineFormSet has same _meta attribute. And foreign key field add to _meta multiple times.

Change History (1)

comment:1 by Tim Graham, 10 years ago

Resolution: duplicate
Status: newclosed

The description is a bit light, but this seems like a duplicate of #21332.

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