summaryrefslogtreecommitdiff
path: root/django/db/models/query.py
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2010-02-23 19:39:06 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2010-02-23 19:39:06 +0000
commitc05de31d75970e3d5ea9ecec37e332a0f01c0fbb (patch)
tree7c10ea036c37387c8449204780c2e2a56bf9d7cb /django/db/models/query.py
parent65b451ae3e3017154e352d300ae6f8152c506b06 (diff)
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
Diffstat (limited to 'django/db/models/query.py')
-rw-r--r--django/db/models/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py
index f301753e12..ab6a14e48a 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -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: