Converted a list comprehension into a generator expression in query_utils.py
This commit is contained in:
parent
5a5e1ac24d
commit
6bccbc05a4
|
@ -194,7 +194,7 @@ def deferred_class_factory(model, attrs):
|
||||||
name = "%s_Deferred_%s" % (model.__name__, '_'.join(sorted(list(attrs))))
|
name = "%s_Deferred_%s" % (model.__name__, '_'.join(sorted(list(attrs))))
|
||||||
name = util.truncate_name(name, 80, 32)
|
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["Meta"] = Meta
|
||||||
overrides["__module__"] = model.__module__
|
overrides["__module__"] = model.__module__
|
||||||
overrides["_deferred"] = True
|
overrides["_deferred"] = True
|
||||||
|
|
Loading…
Reference in New Issue