def __init__(self, *args, **kwargs):
        '''
        self.session is expected to be initialized
        by the derived class
        '''
        self.cls = self.model_class

        assert hasattr(self, 'session'), "session is expected"
        assert self.session is not None, "session must be initialized" \
                                         "by the derived class"
dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/managers.py/AlchemyModelManager.__init__/original