Opened 6 years ago

Closed 6 years ago

#29337 closed Cleanup/optimization (fixed)

Add __len__() & __bool__() to RawQueryset

Reported by: Adnan Umer Owned by: Adnan Umer
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

__len__ & __bool__ are not implemented because of not having internal results caching in RawQueryset (as discussed in #22349). #28600 adds support for results caching.

Change History (4)

comment:1 by Adnan Umer, 6 years ago

Owner: changed from nobody to Adnan Umer
Status: newassigned

comment:2 by Carlton Gibson, 6 years ago

Triage Stage: UnreviewedAccepted

Follow on from #28600

comment:3 by Tim Graham, 6 years ago

Description: modified (diff)
Has patch: set
Summary: __len__ & __bool__ support in RawQuerysetAdd __len__() & __bool__() to RawQueryset
Triage Stage: AcceptedReady for checkin
Type: New featureCleanup/optimization

comment:4 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In f2026ca5:

Fixed #29337 -- Added len() & bool() to RawQuerySet.

Note: See TracTickets for help on using tickets.
Back to Top