Opened 11 years ago
Closed 11 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.
Note:
See TracTickets
for help on using tickets.
The description is a bit light, but this seems like a duplicate of #21332.