Fixed #8106 -- Untangled some problems with complex select_related() queries
commitb47a1e9f0e02879da8f49bc07dfc190ffab9e7e4
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Mon, 25 Aug 2008 22:43:25 +0000 (25 22:43 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Mon, 25 Aug 2008 22:43:25 +0000 (25 22:43 +0000)
treedbbd3b9fde0982966fba7ccffa0e81fb9fc7cf6a
parent29b67d94defbad34c97215be3d6503903b52bc07
Fixed #8106 -- Untangled some problems with complex select_related() queries
and models that have multiple paths to them from other models.

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