          model = OneToOneTargetSource
          exclude = ('target', )
  
  
  class OneToOneTargetSerializer(serializers.ModelSerializer):
      target_source = OneToOneTargetSourceSerializer()
  
      class Meta:
          model = OneToOneTarget
  
  
 
</s> remove class OneToOneTargetSourceSerializer(serializers.ModelSerializer):
    source = OneToOneSourceSerializer()

    class Meta:
        model = OneToOneTargetSource
        exclude = ('target', )
 </s> add  </s> remove     class Meta:
        model = OneToOneTarget
 </s> add             class Meta:
                model = OneToOneTarget
                fields = ('id', 'name', 'source') </s> remove     target_source = models.OneToOneField(OneToOneTargetSource, related_name='source')


class OneToOneSourceSerializer(serializers.ModelSerializer):
    class Meta:
        model = OneToOneSource
        exclude = ('target_source', )

 </s> add     target = models.OneToOneField(OneToOneTarget, related_name='source') </s> remove class NestedOneToOneTests(TestCase):
    def setUp(self):
 </s> add 
        class OneToOneTargetSerializer(serializers.ModelSerializer):
            source = OneToOneSourceSerializer()
          model = OneToOneTargetSource
          exclude = ('target', )
  
  
        class OneToOneTargetSerializer(serializers.ModelSerializer):
            source = OneToOneSourceSerializer()
        class OneToOneTargetSerializer(serializers.ModelSerializer):
            source = OneToOneSourceSerializer()
  
      class Meta:
          model = OneToOneTarget
  
  
keep keep keep keep replace replace keep keep keep keep keep
 Cleanup one-one nested tests and implementation 
rest_framework/tests/relations_nested.py