mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Removed unnecessary list() call in ModelBase.__new__().
Unnecessary since 58ad030d05
.
This commit is contained in:
parent
037a624120
commit
9bfa6a35f0
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue