          self.context = parent.context
  
          # `self.label` should deafult to being based on the field name.
          if self.label is None:
              self.label = self.field_name.replace('_', ' ').capitalize()
  
          # self.source should default to being the same as the field name.
          if self.source is None:
              self.source = field_name
  
 
</s> remove         info = modelinfo.get_field_info(self.opts.model)
 </s> add         info = model_meta.get_field_info(self.opts.model) </s> remove         if model_field.verbose_name is not None:
            kwargs['label'] = model_field.verbose_name
 </s> add         if model_field.verbose_name and needs_label(model_field, field_name):
            kwargs['label'] = capfirst(model_field.verbose_name) </s> remove         serializer_pk_field = self.get_pk_field(info.pk)
 </s> add         field_name = info.pk.name
        serializer_pk_field = self.get_pk_field(field_name, info.pk) </s> remove     foreign_key = PrimaryKeyRelatedField(label='foreign key', queryset=ForeignKeyTargetModel.objects.all())
    one_to_one = PrimaryKeyRelatedField(label='one to one', queryset=OneToOneTargetModel.objects.all())
    many_to_many = PrimaryKeyRelatedField(label='many to many', many=True, queryset=ManyToManyTargetModel.objects.all())
 </s> add     foreign_key = PrimaryKeyRelatedField(queryset=ForeignKeyTargetModel.objects.all())
    one_to_one = PrimaryKeyRelatedField(queryset=OneToOneTargetModel.objects.all())
    many_to_many = PrimaryKeyRelatedField(many=True, queryset=ManyToManyTargetModel.objects.all())
            self.label = field_name_to_label(self.field_name)
          self.context = parent.context
  
          # `self.label` should deafult to being based on the field name.
          if self.label is None:
            self.label = field_name_to_label(self.field_name)
  
          # self.source should default to being the same as the field name.
          if self.source is None:
              self.source = field_name
  
keep keep keep keep replace keep keep keep keep keep
 Drop label from serializer fields when not needed 
rest_framework/fields.py