def get_object(self, key):
        """
        return a new object copied from the one saved in self.objects
        """

        old = self.objects.get(key, None)

        if not old:
            raise ImproperlyConfigured(
                key % 'No object given for key "%s"'
            )

        if not old.pk:
            old.save()

#       # use collector to copy related objects
#       # from django.contrib.admin.utils import NestedObjects
#       # collector = NestedObjects(using='default')
#       # collector.collect([obj])
#       # print(collector.nested())

        old.pk = None
        old.save()

        new = old._default_manager.get(pk=old.pk)

        return new
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/utils/testcases.py/WorkflowTestFactory.get_object/swapped operands of `%`