Fixed #29339 -- Added result caching to RawQuerySet.

This commit is contained in:
Adnan Umer 2018-04-18 22:25:59 +05:00 committed by Tim Graham
parent c1c163b427
commit ec0319ff82
4 changed files with 25 additions and 4 deletions

View file

@ -91,10 +91,7 @@ options that make it very powerful.
:class:`~django.db.models.query.QuerySet`, ``RawQuerySet`` doesn't
implement all methods you can use with ``QuerySet``. For example,
``__bool__()`` and ``__len__()`` are not defined in ``RawQuerySet``, and
thus all ``RawQuerySet`` instances are considered ``True``. The reason
these methods are not implemented in ``RawQuerySet`` is that implementing
them without internal caching would be a performance drawback and adding
such caching would be backward incompatible.
thus all ``RawQuerySet`` instances are considered ``True``.
Mapping query fields to model fields
------------------------------------