Skip to content

Commit

Permalink
pep8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PirosB3 committed Aug 2, 2014
1 parent e927ea0 commit 39a02e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/options.py
Expand Up @@ -512,7 +512,7 @@ def get_fields(self, m2m=False, data=True, related_m2m=False, related_objects=Fa
fields[obj] = query_name

# Tree is computer once and cached until apps cache is expired. It is composed of
# { options_instance : [field_pointing_to_options_model, field_pointing_to_options, ..]}
# {options_instance : [field_pointing_to_options_model, field_pointing_to_options, ..]}
# If the model is a proxy model, then we also add the concrete model.
tree, proxy_tree = self.apps.related_objects_relation_graph
all_fields = tree[self] if not self.proxy else chain(tree[self], tree[self.concrete_model._meta])
Expand Down

0 comments on commit 39a02e2

Please sign in to comment.