Skip to content

Commit

Permalink
Removed some unnecessary work in Model._collect_sub_objects()
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
spookylukey committed Jun 21, 2008
1 parent 5fc7dd7 commit 17bc282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/base.py
Expand Up @@ -378,7 +378,7 @@ def _collect_sub_objects(self, seen_objs):
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()
Expand Down

0 comments on commit 17bc282

Please sign in to comment.