DJ008 (__str__
method) fails when inheriting from multiple models, and str only defined in other module
#15454
Labels
__str__
method) fails when inheriting from multiple models, and str only defined in other module
#15454
This is related to #9242.
When a Django model inherits from an abstract model in the same module and a model in a different module, the
__str__
from the other module is not recognized and trips DJ008.This is a minimal example that reproduces this behaviour:
ruff-bug-repro.zip
Core models:
Resources models:
Output from ruff 0.9.1:
Thanks!
The text was updated successfully, but these errors were encountered: