In one of my django projects, I have a base model (that inherits from django.db.models.Model), and is the base model class that all my models uses.
I would like to "override" the base model class from django, so everytime a developer would import the base model class with "from django.db.models import Model", it would insted import my project's custom base model.
The result would be something like this:
from django.db import models
class MyModel(models.Model):
pass
>>> type(MyModel)
<class 'MyProject.MyApp.CustomModel'>
Any help would be apreciated!