#36593: Deprecate select_related() with no arguments
-------------------------------------+-------------------------------------
     Reporter:  Adam Johnson         |                    Owner:  Adam
         Type:                       |  Johnson
  Cleanup/optimization               |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (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
-------------------------------------+-------------------------------------
Comment (by Jacob Walls):

 As part of this work we discovered a bug in the admin where
 `select_related()` was incorrectly used with the intent of "selecting all
 related objects" even though it (as documented) does not follow nullable
 relations. Mentioning as an additional justification for removing this
 problematic use instead of doubling down on it.

 For the upgrade path, the `FETCH_PEERS` fetch mode is also an option now.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36593#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 visit 
https://groups.google.com/d/msgid/django-updates/0107019e17e1441a-45ecce99-779a-4f42-a8b5-d5922cbe46fe-000000%40eu-central-1.amazonses.com.

Reply via email to