Opened 12 years ago
Closed 12 years ago
#20141 closed Uncategorized (duplicate)
QuerySet filter should check type
Description ¶
When I'm filtering on ForeignKey, I can use an instance of any model in my filter.
Shouldn't .filter check if what I'm filtering with is an instance of the target model of FK?
Note:
See TracTickets
for help on using tickets.
Duplicate of #19669 and #16955.