def handle_noargs(self, **options):
        # Model 'action' from app 'models'
        # Remove actions whose foreign keys point to non-existent objects
        vms_uuid = [ x.uuid for x in VirtualMachine.objects.all()]
        inconsistent_actions = Action.objects.all().exclude(objectUUID__in = vms_uuid)
        length_inconsistent_actions = len(inconsistent_actions)
        inconsistent_actions.delete()
        #Action.objects.all().exclude(requestUser__in = User.objects.all())
        self.stdout.write(str(length_inconsistent_actions) % "\n%s actions removed\n")
dataset/ETHPy150Open fp7-ofelia/ocf/vt_manager/src/python/vt_manager/common/commands/management/commands/clean_inconsistent_db_entries.py/Command.handle_noargs/swapped operands of `%`