summaryrefslogtreecommitdiff
path: root/django/db/models/base.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-05-19 13:42:38 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-05-19 13:42:38 +0000
commit2e24596001bce6e827e31510241834ccff76979f (patch)
tree216c84bea7dfd4c742bb2289a21126283e0b0da4 /django/db/models/base.py
parentb9b9ca334e335a2678f0ae560a9182ca5ed1bfcf (diff)
Fixed #11116 -- Corrected the deletion of proxy objects. Thanks to Samuel Adam for the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/base.py')
-rw-r--r--django/db/models/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index 3a3fbf16ac..13ff7e8f35 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -538,7 +538,7 @@ class Model(object):
# traversing to the most remote parent classes -- those with no parents
# themselves -- and then adding those instances to the collection. That
# will include all the child instances down to "self".
- parent_stack = self._meta.parents.values()
+ parent_stack = [p for p in self._meta.parents.values() if p is not None]
while parent_stack:
link = parent_stack.pop()
parent_obj = getattr(self, link.name)