From 17bc2820bbc95e01d8365a8fc6fcb497852e5f23 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 21 Jun 2008 16:37:44 +0000 Subject: [PATCH] Removed some unnecessary work in Model._collect_sub_objects() git-svn-id: http://code.djangoproject.com/svn/django/trunk@7720 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/base.py b/django/db/models/base.py index 5dd11a9d83..3b6a5fe1ea 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -378,7 +378,7 @@ class Model(object): pk_val = self._get_pk_val() if pk_val in seen_objs.setdefault(self.__class__, {}): return - seen_objs.setdefault(self.__class__, {})[pk_val] = self + seen_objs[self.__class__][pk_val] = self for related in self._meta.get_all_related_objects(): rel_opts_name = related.get_accessor_name()