  
  
  class SkipField(Exception):
      pass
  
  
 
</s> remove     #     print repr(TestSerializer()) </s> add  </s> remove         class NestedModelSerializer(ModelSerializer):  # Not right!
 </s> add         class NestedModelSerializer(ModelSerializer): </s> remove         name = CharField(label='name', max_length=100)
 </s> add         name = CharField(max_length=100) </s> remove         return self.get_field(model_field)
 </s> add         return self.get_field(field_name, model_field)
def field_name_to_label(field_name):
    return field_name.replace('_', ' ').capitalize()


  
  
def field_name_to_label(field_name):
    return field_name.replace('_', ' ').capitalize()


  class SkipField(Exception):
      pass
  
  
keep add keep keep keep keep
 Drop label from serializer fields when not needed 
rest_framework/fields.py