summaryrefslogtreecommitdiff
path: root/django/db/models
diff options
context:
space:
mode:
authorSergBobrovsky <SergBobrovsky@users.noreply.github.com>2020-06-10 13:10:36 +0300
committerGitHub <noreply@github.com>2020-06-10 12:10:36 +0200
commit9bfa6a35f014a5164a8a5f42cd7b1fe25e43c353 (patch)
tree438775ec3f772ffe61abd10b1d20b5d4ce046f51 /django/db/models
parent037a624120b676858be4b93c4d0adda45916fd2a (diff)
Removed unnecessary list() call in ModelBase.__new__().
Unnecessary since 58ad030d05fa50cfed327368ab61defca3303e02.
Diffstat (limited to 'django/db/models')
-rw-r--r--django/db/models/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index fcda6e202f..422b9e7e2d 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -91,7 +91,7 @@ class ModelBase(type):
# method to type.__new__() so that they're properly initialized
# (i.e. __set_name__()).
contributable_attrs = {}
- for obj_name, obj in list(attrs.items()):
+ for obj_name, obj in attrs.items():
if _has_contribute_to_class(obj):
contributable_attrs[obj_name] = obj
else: