def get_actions(self, request):
        actions = super(XOSAdminMixin, self).get_actions(request)

        if self.__user_is_readonly(request):
            if 'delete_selected' in actions:
                del actions['delete_selected']

        return actions
dataset/ETHPy150Open open-cloud/xos/xos/core/admin.py/XOSAdminMixin.get_actions/original