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=target)
     source.save()
Exemple #2
0
 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=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()