Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Negligible formatting fixes in query_utils.py

  • Loading branch information...
commit 5a5e1ac24d3fedca3c3f085b1bd9b13ebbef2d45 1 parent 86243d2
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/db/models/query_utils.py
5 django/db/models/query_utils.py
View
@@ -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])
Simon Charette Collaborator

We could even remove the list comprehension here.

Adrian Holovaty Collaborator

Good call! I just committed that in 6bccbc0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
overrides["Meta"] = Meta
overrides["__module__"] = model.__module__
overrides["_deferred"] = True
Simon Charette

We could even remove the list comprehension here.

Adrian Holovaty

Good call! I just committed that in 6bccbc0.

Please sign in to comment.
Something went wrong with that request. Please try again.