Improvements to [8608] to fix an infinite loop (for exclude(generic_relation)).
commit9e0328c16ff334b55e0d73507ab09f1c08df4722
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 28 Aug 2008 05:00:23 +0000 (28 05:00 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 28 Aug 2008 05:00:23 +0000 (28 05:00 +0000)
tree51fcd1876e7e2913ac1728d492a0393a60a98061
parent807eb709acfa90a40260d2a6d90f92b5835a03eb
Improvements to [8608] to fix an infinite loop (for exclude(generic_relation)).
Also comes with approximately 67% less stupidity in the table joins for
filtering on generic relations.

Fixed #5937, hopefully for good, this time.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/contrib/contenttypes/generic.py
django/db/models/sql/query.py
tests/modeltests/generic_relations/models.py