          models.TimeField: TimeField,
          models.URLField: URLField,
      }
  
      _options_class = ModelSerializerOptions
  
      def __init__(self, *args, **kwargs):
          self.opts = self._options_class(self.Meta)
 
</s> remove                     id = IntegerField(label='ID', read_only=True)
 </s> add                     url = HyperlinkedIdentityField(view_name='manytomanytargetmodel-detail') </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         class NestedModelSerializer(ModelSerializer):
 </s> add         class NestedModelSerializer(self.nested_class):
    nested_class = None  # We fill this in at the end of this module.
          models.TimeField: TimeField,
          models.URLField: URLField,
      }
    nested_class = None  # We fill this in at the end of this module.
  
      _options_class = ModelSerializerOptions
  
      def __init__(self, *args, **kwargs):
          self.opts = self._options_class(self.Meta)
keep keep add keep keep keep keep keep
 Fix nested model serializer base class 
rest_framework/serializers.py