mirror of
https://github.com/django/django.git
synced 2025-12-02 08:05:58 +00:00
Fixed #12851 -- Corrected the loading of values when select_related() is used on inherited models. Thanks to phxx for the report and test case.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13054 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1ff7ed2e69
commit
4e97d7f8e4
2 changed files with 25 additions and 2 deletions
|
|
@ -556,7 +556,7 @@ class Query(object):
|
|||
# models.
|
||||
workset = {}
|
||||
for model, values in seen.iteritems():
|
||||
for field in model._meta.local_fields:
|
||||
for field in model._meta.fields:
|
||||
if field in values:
|
||||
continue
|
||||
add_to_dict(workset, model, field)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue