#36207: refresh_from_db() doesn't clear cached ForeignObject 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:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Clifford Gama):

 * stage:  Accepted => Ready for checkin

Comment:

 Patch LGTM

 The only remaining consideration is whether adding an entry to
 `FORWARD_PROPERTIES` without adding a corresponding test—despite limited
 test coverage for this set—is acceptable. Since:
 1. The risk appears low (no tests fail without it, but stale cache could
 theoretically occur).
 2. Testing this edge case robustly would likely require invasive model
 mutations post-setup.
 3. Field-related entries in `FORWARD_PROPERTIES` are untested (You can
 remove all but one of them without seeing any test failures.
 Leaving this to the merger’s discretion.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36207#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 visit 
https://groups.google.com/d/msgid/django-updates/01070196a5a516ec-37cc6b4f-b2cf-48c4-8cef-014d0dc34aa8-000000%40eu-central-1.amazonses.com.

Reply via email to