#33984: Related managers cache gets stale after saving a fetched model with new
PK
-------------------------------------+-------------------------------------
Reporter: joeli | Owner: Mariusz
| Felisiak
Type: Bug | Status: closed
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution: fixed
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 Steven Mapes):
Replying to [comment:19 Keryn Knight]:
> Replying to [comment:18 Steven Mapes]:
> > Is this why model forms now, since Django 4.1.0 raise ValueErrors if
you try access Related Managers within the `__init__` even if you check
for the the instance being set along with the relationship?
>
> I ''believe'' that's #33952 -- that was fixed in `4.1.1` and this ticket
in `4.1.2`.
Ah okay, I just tested it with 3.2.16, 4.0.8, 4.1.0, 4.1.1, 4.1.2 and the
tests pass in 3.2.16 and 4.0.8 but still fail in the others
--
Ticket URL: <https://code.djangoproject.com/ticket/33984#comment:20>
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/01070183c67a7d7a-e1165427-140c-4033-937a-4b6cd34249ff-000000%40eu-central-1.amazonses.com.