Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Negligible formatting fixes in query_utils.py

  • Loading branch information...
commit 5a5e1ac24d3fedca3c3f085b1bd9b13ebbef2d45 1 parent 86243d2
Adrian Holovaty authored April 25, 2013

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  django/db/models/query_utils.py
5  django/db/models/query_utils.py
@@ -102,7 +102,7 @@ def __get__(self, instance, owner):
102 102
                 f = [f for f in opts.fields
103 103
                      if f.attname == self.field_name][0]
104 104
             name = f.name
105  
-            # Lets see if the field is part of the parent chain. If so we
  105
+            # Let's see if the field is part of the parent chain. If so we
106 106
             # might be able to reuse the already loaded value. Refs #18343.
107 107
             val = self._check_parent_chain(instance, name)
108 108
             if val is None:
@@ -194,8 +194,7 @@ class Meta:
194 194
     name = "%s_Deferred_%s" % (model.__name__, '_'.join(sorted(list(attrs))))
195 195
     name = util.truncate_name(name, 80, 32)
196 196
 
197  
-    overrides = dict([(attr, DeferredAttribute(attr, model))
198  
-            for attr in attrs])
  197
+    overrides = dict([(attr, DeferredAttribute(attr, model)) for attr in attrs])
199 198
     overrides["Meta"] = Meta
200 199
     overrides["__module__"] = model.__module__
201 200
     overrides["_deferred"] = True

0 notes on commit 5a5e1ac

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.