Opened 9 years ago

Closed 9 years ago

Last modified 9 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 by Tim Graham, 9 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

Needs 1.8.1 release notes.

comment:3 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 9c2d8cde:

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

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

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