#28096 closed Bug (fixed)
Cannot Prefetch() when queryset has ModelIterable subclass
Reported by: | Claude Paroz | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.11 |
Severity: | Normal | Keywords: | regression |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
I have a manager with a custom ModelIterable subclass. Unfortunately, I cannot prefetch on it because of the queryset._iterable_class is not ModelIterable
line introduced in [7ec330eeb96d0874949eacb8ed1bbb97e11807e1].
Could that line make use of issubclass
instead?
Change History (4)
comment:1 by , 7 years ago
Has patch: | set |
---|
comment:2 by , 7 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR