Allow for matches against unsaved objects in querysets (which will therefore
commit9f9e93a28bb3840b41a3ff15d59180e76d647fab
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Wed, 23 Jul 2008 06:12:15 +0000 (23 06:12 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Wed, 23 Jul 2008 06:12:15 +0000 (23 06:12 +0000)
treec344b8708480f3eb3acddf1e799c0ce0a30ca42e
parentff38762c1ed02507bc04a282d856f61be31d43b3
Allow for matches against unsaved objects in querysets (which will therefore
match nothing). This allows for some more straightforward code in the admin
interface.

Fixed #7488 (all the debugging there was done by Brian Rosner, who narrowed it
down to the item in this patch).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/db/models/sql/where.py
tests/regressiontests/model_inheritance_regress/models.py