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 25467 Excluding an object with no ID excludes everything. Stavros Korokithakis Jacob Walls "This behaviour is surprising: {{{ In [26]: UserAlias.objects.filter(alias=""foo@example.com"") Out[26]: [] In [27]: UserAlias.objects.filter(alias=""foo@example.com"").exclude(user=User()) Out[27]: [] }}} The exclude should have no effect in this case, it should not exclude every user." Bug closed Database layer (models, ORM) 1.8 Normal fixed Accepted 1 0 0 0 0 0