def setUp(self):
        target = ForeignKeyTarget(name='target-1')
        target.save()
        for idx in range(1, 4):
            if idx == 3:
                target = None
            source = NullableForeignKeySource(name='source-%d' % idx, target=target)
            source.save()
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_relations_slug.py/SlugNullableForeignKeyTests.setUp/original