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
This commit is contained in:
Luke Plant 2008-06-21 16:37:44 +00:00
parent 5fc7dd7d28
commit 17bc2820bb
1 changed files with 1 additions and 1 deletions

View File

@ -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()