Permalink
Browse files

Converted a list comprehension into a generator expression in query_u…

…tils.py
  • Loading branch information...
1 parent 5a5e1ac commit 6bccbc05a443b97e8651a36df10de6ac5283aee4 @adrianholovaty adrianholovaty committed Apr 25, 2013
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

0 comments on commit 6bccbc0

Please sign in to comment.