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