Re: Document/make public prefetch_related_objects

2015-08-15 Thread Adam Johnson
Here we go! https://code.djangoproject.com/ticket/25279 On 14 August 2015 at 14:19, Marc Tamlyn wrote: > Nothing on `query` is public at the moment - I can see the merit in adding > a public API to do this kind of work though. Can you open a ticket? > https://code.djangoproject.com/newticket > >

Re: Document/make public prefetch_related_objects

2015-08-14 Thread Marc Tamlyn
Nothing on `query` is public at the moment - I can see the merit in adding a public API to do this kind of work though. Can you open a ticket? https://code.djangoproject.com/newticket On 14 August 2015 at 13:26, Adam Johnson wrote: > *prefetch_related* is great, but it would be nice to be able t

Document/make public prefetch_related_objects

2015-08-14 Thread Adam Johnson
*prefetch_related* is great, but it would be nice to be able to reuse its capabilities with lists of model instances already retrieved by other code (or from cache, or newly constructed, etc.). It seems this is possible by using *django.db.models.query.prefetch_related_objects* which is the fun