mirror of
https://github.com/django/django.git
synced 2025-09-22 18:22:40 +00:00
Fixed #12731. Fixed a bug with .raw() and inheritance. Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
65b451ae3e
commit
c05de31d75
3 changed files with 21 additions and 5 deletions
|
@ -1402,7 +1402,7 @@ class RawQuerySet(object):
|
|||
# Construct model instance and apply annotations
|
||||
skip = set()
|
||||
for field in self.model._meta.fields:
|
||||
if field.name not in model_init_kwargs.keys():
|
||||
if field.attname not in model_init_kwargs.keys():
|
||||
skip.add(field.attname)
|
||||
|
||||
if skip:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue