Negligible formatting fixes in query_utils.py
This commit is contained in:
parent
86243d2e57
commit
5a5e1ac24d
|
@ -102,7 +102,7 @@ class DeferredAttribute(object):
|
|||
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 @@ def deferred_class_factory(model, attrs):
|
|||
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])
|
||||
overrides["Meta"] = Meta
|
||||
overrides["__module__"] = model.__module__
|
||||
overrides["_deferred"] = True
|
||||
|
|
Loading…
Reference in New Issue