#24395: Cannot reference FK relation from inline ModelForm.save()
---------------------------------+-------------------------------------
Reporter: Starou | Owner: timgraham
Type: Bug | Status: assigned
Component: Forms | Version: 1.8alpha1
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-------------------------------------
Comment (by timgraham):
I think this [https://github.com/django/django/pull/4204 simplified PR]
might be sufficient to address this. Mainly, there's only a need to make
the assignment when saving new objects, since existing objects must
already have a saved related instance. Let me know if you see any problems
with this solution and thank-you very much for the initial patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/24395#comment:6>
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/064.d72d4671eca9f3691e3c032f7f6c796a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.