Changes between Initial Version and Version 1 of Ticket #24975
- Timestamp:
- Jun 12, 2015, 5:09:18 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24975
- Property Component Uncategorized → Database layer (models, ORM)
- Property Version 1.8 → master
-
Ticket #24975 – Description
initial v1 8 8 9 9 I worked around this issue, by doing the following: 10 ``` 10 {{{ 11 11 articles = order.articles.all() 12 12 order._prefetched_objects_cache = {"articles": articles} 13 ``` 13 }}} 14 14 15 15 I 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