def duplicate(self):
        checks = self.status_checks.all()
        new_instance = self
        new_instance.pk = None
        new_instance.id = None
        new_instance.name = self.name % u"Copy of %s"

        new_instance.save()

        for check in checks:
            check.duplicate(inst_set=(new_instance,), serv_set=())

        return new_instance.pk
dataset/ETHPy150Open arachnys/cabot/cabot/cabotapp/models.py/Instance.duplicate/swapped operands of `%`