I searched the codebase for similar cases and found that it was the same
with `QuerySet`, though this does not have consequences as
`QuerySet.__len__` is defined and `bool` will use that in Py3.
The PR addresses both classes for consistency.
--
Ticket URL: <https://code.djangoproject.com/ticket/23664>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Ready for checkin
Comment:
The PR (https://github.com/django/django/pull/3380/files) looks good to
me.
Let's see what the CI server has to say about it.
--
Ticket URL: <https://code.djangoproject.com/ticket/23664#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"b962653060f1968f5a2647b8a20259dc30a3433f"]:
{{{
#!CommitTicketReference repository=""
revision="b962653060f1968f5a2647b8a20259dc30a3433f"
Fixed #23664 -- Provided a consistent definition for OrderedSet.__bool__
This also defines QuerySet.__bool__ for consistency though this should not
have any consequence as bool(qs) used to fallback on QuerySet.__len__ in
Py3.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23664#comment:2>