          Creates a default instance of a nested relational field.
  
          Note that model_field will be `None` for reverse relationships.
          """
          class NestedModelSerializer(ModelSerializer):
              class Meta:
                  model = related_model
                  depth = self.opts.depth - 1
  
          kwargs = {'read_only': True}
 
</s> remove                     id = IntegerField(label='ID', read_only=True)
 </s> add                     url = HyperlinkedIdentityField(view_name='foreignkeytargetmodel-detail') </s> remove                     id = IntegerField(label='ID', read_only=True)
 </s> add                     url = HyperlinkedIdentityField(view_name='onetoonetargetmodel-detail') </s> remove                     id = IntegerField(label='ID', read_only=True)
 </s> add                     url = HyperlinkedIdentityField(view_name='manytomanytargetmodel-detail')
        class NestedModelSerializer(self.nested_class):
          Creates a default instance of a nested relational field.
  
          Note that model_field will be `None` for reverse relationships.
          """
        class NestedModelSerializer(self.nested_class):
              class Meta:
                  model = related_model
                  depth = self.opts.depth - 1
  
          kwargs = {'read_only': True}
keep keep keep keep replace keep keep keep keep keep
 Fix nested model serializer base class 
rest_framework/serializers.py