def perform_destroy(self, instance):
        model_cls = self.get_model_cls()
        app_label = model_cls._meta.app_label
        model_name = model_cls._meta.model_name
        for perm in instance['permissions']:
            remove_perm('%s.%s_%s' % (app_label, perm, model_name),
                        instance[self.get_user_or_group()])
dataset/ETHPy150Open stackdio/stackdio/stackdio/core/viewsets.py/StackdioModelPermissionsViewSet.perform_destroy/original