Changes between Version 1 and Version 2 of Ticket #18177, comment 4


Ignore:
Timestamp:
05/20/2012 12:05:47 PM (3 years ago)
Author:
aaugustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18177, comment 4

    v1 v2  
    1313
    1414- It introduces a new attribute, `QuerySet._known_related_object`. This is only used to automatically set the reverse relation when creating objects through a related manager. When you're accessing `tournament.pool_set.all()`, `tournament.pool_set.all()._known_related_object == ('tournament', tournament)`, so each pool objects gets its 'tournament' attribute set to the original `tournament` instance.
    15 - It caches the reverse relation in several `get_prefetch_query_set()` methods, as explained above.
     15- It caches the reverse relation in several `get_prefetch_query_set()` methods, as explained above. This isn't implemented for many-to-many relations since there's no way to be sure that we have all the objects we need to build the reverse relation.
    1616- It cleans up a little bit the code of the `QuerySet` class.
    1717
Back to Top