#33111: Conditionally changing ModelAdmin inlines based on object's field breaks
when changing object and new inlines should appear.
-------------------------------------+-------------------------------------
Reporter: joeli | Owner: Hasan
| Ramezani
Type: Bug | Status: closed
Component: contrib.admin | Version: 3.2
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"668b990bf6da5232b16f979f59bb5d9b3af19e45" 668b990b]:
{{{
#!CommitTicketReference repository=""
revision="668b990bf6da5232b16f979f59bb5d9b3af19e45"
[4.0.x] Fixed #33111 -- Fixed passing object to ModelAdmin.get_inlines()
when editing in admin change view.
ModelAdmin.get_inlines() should get an unmutated object when creating
formsets during POST request.
Backport of 2f0f30f973363a59c20f204f9351724fb2ce7327 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33111#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.c3859b79300c962522a3ed432ddd946e%40djangoproject.com.