Changes between Initial Version and Version 1 of Ticket #24975


Ignore:
Timestamp:
Jun 12, 2015, 5:09:18 PM (9 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24975

    • Property Component UncategorizedDatabase layer (models, ORM)
    • Property Version 1.8master
  • Ticket #24975 – Description

    initial v1  
    88
    99I worked around this issue, by doing the following:
    10 ```
     10{{{
    1111articles = order.articles.all()
    1212order._prefetched_objects_cache = {"articles": articles}
    13 ```
     13}}}
    1414
    1515I propose to have somethins like order.prefetch("articles") that would do exactly what I did (but of course take care of verifying if `_prefetched_objects_cache` already exists and any other precautions needed.
    16 
    17 
Back to Top