#27846: refresh_from_db() doesn't clear reverse OneToOneFields
-------------------------------------+-------------------------------------
Reporter: Keith Hostetler | Owner: Paulo
Type: Bug | Status: assigned
Component: Database layer | Version: 1.10
(models, ORM) |
Severity: Normal | Resolution:
Keywords: refresh_from_db | Triage Stage: Accepted
OneToOneField |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Paulo):
Hello,
What do you all think about clearing the fields cache entirely on
refresh_from_db()?
This would cover similar bugs where a many to one or many to many
relationship is cached.
The only case we can't cover is fields prefetched to custom attributes.
--
Ticket URL: <https://code.djangoproject.com/ticket/27846#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/067.005ed0994fcdd36f2b203dd3e838deb6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.