Tall models.py with a common prefix

Taller models.py with many Models may be more difficult to maintain than shorter models.py with fewer Models.

There is a limit to how many items a developer can consider when forming a mental model of source code.

It may be time to split an application if models.py is very long.

A good starting point would be to move models with the same prefix to a sub-application.

We're your Django code review copilot. Get code improvements right in your pull request with our GitHub code review bot.

Configuring this check

Code Review Doctor will run this check by default. No configuration is needed but the check can be turned on/off using check code model-common-prefix in your pyproject.toml file.

Read more about configuring Code Review Doctor.