Skip to content

Commit 0e1d50f

Browse files
committed
add class itself to model bases
1 parent 26467c2 commit 0e1d50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy_django_plugin/django/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def all_model_bases(self) -> Set[str]:
292292

293293
all_model_bases = set()
294294
for model_cls in model_classes:
295-
for base_cls in model_cls.mro()[1:]:
295+
for base_cls in model_cls.mro():
296296
all_model_bases.add(helpers.get_class_fullname(base_cls))
297297

298298
return all_model_bases

0 commit comments

Comments
 (0)