Fixed #8841 -- Fixed a case of ForeignKeys to models constructed with inheritance.
Fixed #8841 -- Fixed a case of ForeignKeys to models constructed with
inheritance.

This patch is uglier than it needs to be (see comment in patch) to ensure no
accidental bug is introduced just before 1.0. We'll clean it up later.


git-svn-id: 554f83ef17aa7291f84efa897c1acfc5d0035373@8957 bcc190cf-cafb-0310-a4f2-bffc1f526a37

svn2github/django,svn2github/django,svn2github/django