diff options
| author | Adnan Umer <u.adnan@outlook.com> | 2018-04-19 15:09:54 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-04-19 12:46:31 -0400 |
| commit | f2026ca5e29273771f4dba75ca99b8dd5812e047 (patch) | |
| tree | b8eb9af71f5220815e243e000d44392137267612 /docs | |
| parent | ec0319ff821492783f555917b61bceacddb77571 (diff) | |
Fixed #29337 -- Added __len__() & __bool__() to RawQuerySet.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/sql.txt | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/docs/topics/db/sql.txt b/docs/topics/db/sql.txt index cff628011e..39a54e4239 100644 --- a/docs/topics/db/sql.txt +++ b/docs/topics/db/sql.txt @@ -85,14 +85,6 @@ options that make it very powerful. both rows will match. To prevent this, perform the correct typecasting before using the value in a query. -.. warning:: - - While a ``RawQuerySet`` instance can be iterated over like a normal - :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``. - Mapping query fields to model fields ------------------------------------ |
