Opened 5 years ago

Closed 5 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 Changed 5 years ago by Adnan Umer

Owner: changed from nobody to Adnan Umer
Status: newassigned

comment:2 Changed 5 years ago by Carlton Gibson

Triage Stage: UnreviewedAccepted

Follow on from #28600

comment:3 Changed 5 years ago by Tim Graham

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 Changed 5 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In f2026ca5:

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

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