def setUp(self):
     target = OneToOneTarget(name='target-1')
     target.save()
     new_target = OneToOneTarget(name='target-2')
     new_target.save()
     source = NullableOneToOneSource(name='source-1', target=new_target)
     source.save()
 def setUp(self):
     target = OneToOneTarget(name='target-1')
     target.save()
     new_target = OneToOneTarget(name='target-2')
     new_target.save()
     source = NullableOneToOneSource(name='source-1', target=new_target)
     source.save()
 def setUp(self):
     target = OneToOneTarget(name="target-1")
     target.save()
     new_target = OneToOneTarget(name="target-2")
     new_target.save()
     source = NullableOneToOneSource(name="source-1", target=new_target)
     source.save()
 def setUp(self):
     # Given: Some target models already exist
     self.target = target = OneToOneTarget(name='target-1')
     target.save()
     self.alt_target = alt_target = OneToOneTarget(name='target-2')
     alt_target.save()