Opened 6 years ago

Last modified 6 years ago

#29337 closed Cleanup/optimization

Add __len__() & __bool__() to RawQueryset — at Version 3

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 (3)

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
Note: See TracTickets for help on using tickets.
Back to Top