  
  class HyperlinkedModelSerializer(ModelSerializer):
      _options_class = HyperlinkedModelSerializerOptions
      _default_view_name = '%(model_name)s-detail'
      #_hyperlink_field_class = HyperlinkedRelatedField
      #_hyperlink_identify_field_class = HyperlinkedIdentityField
  
      def get_default_fields(self):
          fields = super(HyperlinkedModelSerializer, self).get_default_fields()
  
          if self.opts.view_name is None:
 
</s> remove     field1 = serializers.CharField(3, required=True)
    field2 = serializers.CharField(10, required=False)
 </s> add     field1 = serializers.CharField(max_length=3, required=True)
    field2 = serializers.CharField(max_length=10, required=False) </s> remove             # if model_field.help_text is not None:
            #     kwargs['help_text'] = model_field.help_text
 </s> add             #  if model_field.help_text is not None:
            #      kwargs['help_text'] = model_field.help_text </s> remove                 files = None
 </s> add                 # files = None </s> remove                 files = request.FILES
 </s> add                 # files = request.FILES </s> remove                  label=None, style=None):
 </s> add                  label=None, style=None, error_messages=None):
    # _hyperlink_field_class = HyperlinkedRelatedField
    # _hyperlink_identify_field_class = HyperlinkedIdentityField
  
  class HyperlinkedModelSerializer(ModelSerializer):
      _options_class = HyperlinkedModelSerializerOptions
      _default_view_name = '%(model_name)s-detail'
    # _hyperlink_field_class = HyperlinkedRelatedField
    # _hyperlink_identify_field_class = HyperlinkedIdentityField
    # _hyperlink_field_class = HyperlinkedRelatedField
    # _hyperlink_identify_field_class = HyperlinkedIdentityField
  
      def get_default_fields(self):
          fields = super(HyperlinkedModelSerializer, self).get_default_fields()
  
          if self.opts.view_name is None:
keep keep keep keep replace replace keep keep keep keep keep
 Add relations and get tests running 
rest_framework/serializers.py