#24599: BaseInlineFormSet.add_fields(self, form, index) add field to form._meta
multiple times
------------------------------+--------------------
Reporter: malyshevalex | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/24599>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.952fa9dd1169b8b0a6c2b64bebfbe708%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.