Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#24719 closed Bug (fixed)

Related lookup type check broken when an iterator is supplied.

Reported by: acoady Owned by: nobody
Component: Database layer (models, ORM) Version: 1.8
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

If the input to an in lookup is an iterator, then the related lookup check will exhaust it, thereby causing the query to silently fail with no results.

Change History (4)

comment:2 Changed 8 years ago by Tim Graham

Has patch: set
Triage Stage: UnreviewedReady for checkin

Needs 1.8.1 release notes.

comment:3 Changed 8 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 9c2d8cde:

Fixed #24719 -- Restored the ability to use interators as queryset related object filters.

comment:4 Changed 8 years ago by Tim Graham <timograham@…>

In b67bd1b:

[1.8.x] Fixed #24719 -- Restored the ability to use interators as queryset related object filters.

Backport of 9c2d8cde77ee6edd407e92f93eacd4624290394f from master

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