#37239: Saving related objects with generated primary keys doesn't update assigned
relations
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Jacob
| Walls
Type: Bug | Status: assigned
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* summary:
After assigning a related object with a db_default, the db_default
expression is reevaluated when saving the other object
=>
Saving related objects with generated primary keys doesn't update
assigned relations
Comment:
I have closed #37238 as a duplicate as the fix for this appears to resolve
that issue.
That ticket gives different example models we could use that wouldn't use
`UUID4`
--
Ticket URL: <
https://code.djangoproject.com/ticket/37239#comment:4>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.