id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 12855 QuerySet.__or__ has bad behavior in the presence of extra Alex Gaynor nobody "If you do something like {{{ q = Model.objects.extra(where=[""some stuff""]) | Model.objects.filter(c=d) }}} In this csae the where clause of the 2nd queryset gets lost because of the way they are combined. This is a symptom of the fact that extra where stuff is basically tacked onto the end of a queryset after the fact." closed Database layer (models, ORM) dev fixed Accepted 1 0 0 0 0 0