Skip to content

Commit

Permalink
short comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan8 committed Feb 23, 2013
1 parent 15bcccf commit fb87014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/contrib/admin/util.py
Expand Up @@ -155,6 +155,7 @@ def collect(self, objs, source_attr=None, **kwargs):
self.add_edge(getattr(obj, source_attr), obj)
else:
if obj._meta.proxy:
# Take concrete model's instance to avoid mismatch in edges
obj = obj._meta.concrete_model(pk=obj.pk)
self.add_edge(None, obj)
try:
Expand Down

0 comments on commit fb87014

Please sign in to comment.