summaryrefslogtreecommitdiff
path: root/django/db/models/base.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-06-08 13:35:39 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-06-08 13:35:39 +0000
commit031385e4cc3be747319458eab5ba80270a5285f9 (patch)
treeff6c5d85e3f0f0b14745d6ff25df6b17ac66c4c6 /django/db/models/base.py
parent81aedbd157209518a2a25ac528f29893900c1ae5 (diff)
Fixed #11194 -- Corrected loading of Proxy models from fixtures (and, by extension, save_base(raw=True) for Proxy models).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/base.py')
-rw-r--r--django/db/models/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index 325e8764f1..a5c99865a6 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -435,7 +435,9 @@ class Model(object):
# That means that we don't try to be smart about saving attributes
# that might have come from the parent class - we just save the
# attributes we have been given to the class we have been given.
- if not raw:
+ # We also go through this process to defer the save of proxy objects
+ # to their actual underlying model.
+ if not raw or meta.proxy:
if meta.proxy:
org = cls
else: