def adjust_model_class(cls, ctx: ClassDefContext) -> None:
        """
        For the sake of type checkers other than mypy, some attributes that are
        dynamically added by Django's model metaclass has been annotated on
        `django.db.models.base.Model`. We remove those attributes and will handle them
        through the plugin.
        """
        if ctx.cls.fullname != fullnames.MODEL_CLASS_FULLNAME:
            return

        does_not_exist = ctx.cls.info.names.get("DoesNotExist")
        if does_not_exist is not None and isinstance(does_not_exist.node, Var) and not does_not_exist.plugin_generated:
            del ctx.cls.info.names["DoesNotExist"]

        multiple_objects_returned = ctx.cls.info.names.get("MultipleObjectsReturned")
        if (
            multiple_objects_returned is not None
            and isinstance(multiple_objects_returned.node, Var)
            and not multiple_objects_returned.plugin_generated
        ):
            del ctx.cls.info.names["MultipleObjectsReturned"]

        objects = ctx.cls.info.names.get("objects")
        if objects is not None and isinstance(objects.node, Var) and not objects.plugin_generated:
            del ctx.cls.info.names["objects"]

        return

        For the sake of type checkers other than mypy, some attributes that are
        dynamically added by Django's model metaclass has been annotated on
        `django.db.models.base.Model`. We remove those attributes and will handle them
        through the plugin.
        
mypy_django_plugin/transformers/models.py