Skip to content

Commit

Permalink
Negligible formatting fixes in query_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianholovaty committed Apr 25, 2013
1 parent 86243d2 commit 5a5e1ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions django/db/models/query_utils.py
Expand Up @@ -102,7 +102,7 @@ def __get__(self, instance, owner):
f = [f for f in opts.fields
if f.attname == self.field_name][0]
name = f.name
# Lets see if the field is part of the parent chain. If so we
# Let's see if the field is part of the parent chain. If so we
# might be able to reuse the already loaded value. Refs #18343.
val = self._check_parent_chain(instance, name)
if val is None:
Expand Down Expand Up @@ -194,8 +194,7 @@ class Meta:
name = "%s_Deferred_%s" % (model.__name__, '_'.join(sorted(list(attrs))))
name = util.truncate_name(name, 80, 32)

overrides = dict([(attr, DeferredAttribute(attr, model))
for attr in attrs])
overrides = dict([(attr, DeferredAttribute(attr, model)) for attr in attrs])

This comment has been minimized.

Copy link
@charettes

charettes Apr 25, 2013

Member

We could even remove the list comprehension here.

This comment has been minimized.

Copy link
@adrianholovaty

adrianholovaty Apr 25, 2013

Author Member

Good call! I just committed that in 6bccbc0.

overrides["Meta"] = Meta
overrides["__module__"] = model.__module__
overrides["_deferred"] = True
Expand Down

0 comments on commit 5a5e1ac

Please sign in to comment.