[1.7.x] Fixed #22553 -- Added refreshing queryset info to docs.

Backport of 6d5daa30cf from master
This commit is contained in:
David Hoffman 2014-07-26 10:00:48 -04:00 committed by Tim Graham
parent ddf2b7d96b
commit 1ef544f91f
1 changed files with 5 additions and 0 deletions

View File

@ -721,6 +721,11 @@ can be useful in situations where you might want to pass in either a model
manager or a ``QuerySet`` and do further filtering on the result. After calling manager or a ``QuerySet`` and do further filtering on the result. After calling
``all()`` on either object, you'll definitely have a ``QuerySet`` to work with. ``all()`` on either object, you'll definitely have a ``QuerySet`` to work with.
When a ``QuerySet`` is :ref:`evaluated <when-querysets-are-evaluated>`, it
typically caches its results. If the data in the database might have changed
since a ``QuerySet`` was evaluated, you can get updated results for the same
query by calling ``all()`` on a previously evaluated ``QuerySet``.
select_related select_related
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~