Ticket #15316: 15316.diff
File 15316.diff, 608 bytes (added by , 13 years ago) |
---|
-
django/db/models/sql/query.py
1075 1075 can_reuse) 1076 1076 return 1077 1077 1078 if (lookup_type == 'isnull' and value is True andnot negate and1078 if (lookup_type == 'isnull' and not negate and 1079 1079 len(join_list) > 1): 1080 1080 # If the comparison is against NULL, we may need to use some left 1081 1081 # outer joins when creating the join chain. This is only done when