Upgrading Django 4.x throws Abstract models cannot be instantiated.

Here’s the model that’s causing the error.

class LineBase(BaseModel, MoreInfoMixin):
    """"""
    ....
    class Meta:
        abstract = True

BaseModel is also an abstract model.

def __init__(self, *args, **kwargs):
        ...
        super().__init__(*args, **kwargs) ### <<<< this line causes the issue
        ...

        for k, v in kwargs.items():
            setattr(self, k, v)

This was working fine in Django 2.2.
I am not sure why I cannot call the init method of parent class.
Anyone has ever experienced this issue and solved it?
Should I go back to older version?
Any help would be appreciated

The bug that allowed this to be done previously was fixed - #26977 (Instantiating an abstract model with a string ForeignKey fails with TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types) – Django and
Fixed #26977 -- Made abstract models raise TypeError when instantiating. by jacobtylerwalls · Pull Request #13267 · django/django · GitHub