Good day, everyone. I am planning to create an extension or a Django app specifically aimed at providing solutions to recurring problems that affect the development process—particularly those that cause headaches during integration or development.
This thread is a safe space to share suggestions, constructive criticism, and ideas for improvement, all with the goal of making Django more efficient, developer-friendly, and robust.
Your input is valuable and highly appreciated. Let’s work together to enhance the Django ecosystem.
Hi, there is a very old problem, that is still present in latest Django. It is related to multi table inheritance in Models.
Example:
Person → Employee → FactoryWorker
Assuming all models inherit each other in the direction specified, it is impossible to rename Employee model to e.g. Worker without having the migration fail when trying to apply it.
The problem is well known, and has been discussed:
I personally decided to avoid multi table inheritance models all together, because of this exact problem.
I think a fix for this might be a cool idea for a package, especially considering that there is a django-polymorphic
package, with over 1.7k start on GitHub, that is based on this type of models.