def get_model_or_object(self):
        assert self.model_or_object in ('model', 'object'), (
            "'%s' should include a `model_or_object` attribute that is one of 'model' or 'object'."
            % self.__class__.__name__
        )
        return self.model_or_object
dataset/ETHPy150Open stackdio/stackdio/stackdio/core/viewsets.py/StackdioBasePermissionsViewSet.get_model_or_object/original