#25279: Make prefetch_related_objects a public API
-------------------------------------+-------------------------------------
     Reporter:  adamchainz           |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by adamchainz):

 * has_patch:  0 => 1


Comment:

 Oh #24975 is nice. It doesn't seem that hard to do - on Model would it not
 just require...

 {{{
 def prefetch_related(self, related_lookups):
     prefetch_related_objects([self], related_lookups)
 }}}

 Basic PR at [https://github.com/django/django/pull/5138], with a
 documentation sketch. Agree that more tests would be required.

--
Ticket URL: <https://code.djangoproject.com/ticket/25279#comment:2>
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/068.2e40f2c4f679409898ace606d0bd1d18%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to