#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:1 by , 10 years ago
comment:2 by , 10 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
Needs 1.8.1 release notes.
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/4572