#25431: ModelFormset regression in object clean() accessing a FK
-------------------------------------------+----------------------------
Reporter: claudep | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.8
Severity: Release blocker | Keywords: regression
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+----------------------------
When a ModelForm with an inline formset is validated (at least when all
objects are new), the inline instances are constructed without the link to
their parent model, because the fk field is excluded from the instance
construction (see BaseModelForm._post_clean).
Like #25349, this regression is probably caused by
45e049937d2564d11035827ca9a9221b86215e45/#13776.
--
Ticket URL: <https://code.djangoproject.com/ticket/25431>
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/050.639eef8849bc222bec9eda6aacc054dc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.