mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
- flake8 & black fixes
This commit is contained in:
@@ -118,7 +118,8 @@ class ModelBase(type):
|
||||
else:
|
||||
new_attrs[obj_name] = obj
|
||||
new_class = super_new(cls, name, bases, new_attrs, **kwargs)
|
||||
# update contributable_attrs with any such attributes added to new_class - these came from __init_subclass__
|
||||
# update contributable_attrs with any such attributes added to new_class.
|
||||
# any such attributes came from user-defined __init_subclass__ on new_class
|
||||
for obj_name, obj in dict(vars(new_class)).items():
|
||||
if _has_contribute_to_class(obj):
|
||||
contributable_attrs[obj_name] = obj
|
||||
|
||||
Reference in New Issue
Block a user