Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Converted a list comprehension into a generator expression in query_u…

…tils.py
  • Loading branch information...
commit 6bccbc05a443b97e8651a36df10de6ac5283aee4 1 parent 5a5e1ac
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/query_utils.py
View
2  django/db/models/query_utils.py
@@ -194,7 +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)
overrides["Meta"] = Meta
overrides["__module__"] = model.__module__
overrides["_deferred"] = True
Please sign in to comment.
Something went wrong with that request. Please try again.