Permalink
Browse files

Negligible formatting fixes in query_utils.py

  • Loading branch information...
1 parent 86243d2 commit 5a5e1ac24d3fedca3c3f085b1bd9b13ebbef2d45 @adrianholovaty adrianholovaty committed Apr 25, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/db/models/query_utils.py
View
5 django/db/models/query_utils.py
@@ -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:
@@ -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])
@charettes
charettes Apr 25, 2013

We could even remove the list comprehension here.

@adrianholovaty
adrianholovaty Apr 25, 2013

Good call! I just committed that in 6bccbc0.

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

0 comments on commit 5a5e1ac

Please sign in to comment.