mirror of
https://github.com/django/django.git
synced 2025-02-12 18:36:41 +00:00
Removed unnecessary list() call in ModelBase.__new__().
Unnecessary since 58ad030d05fa50cfed327368ab61defca3303e02.
This commit is contained in:
parent
037a624120
commit
9bfa6a35f0
@ -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…
x
Reference in New Issue
Block a user