  
          if postgres_fields and isinstance(model_field, postgres_fields.ArrayField):
              child_model_field = model_field.base_field
              child_field_class, child_field_kwargs = self.build_standard_field(
                  'child', child_model_field
              )
 
</s> remove         field_class = self.serializer_related_class
 </s> add         field_class = self.serializer_related_field </s> remove     serializer_related_class = PrimaryKeyRelatedField
 </s> add     serializer_related_field = PrimaryKeyRelatedField
    serializer_url_field = HyperlinkedIdentityField
    serializer_choice_field = ChoiceField </s> remove             field_class = ChoiceField
 </s> add             field_class = self.serializer_choice_field </s> remove         field_class = HyperlinkedIdentityField
 </s> add         field_class = self.serializer_url_field </s> remove     serializer_related_class = HyperlinkedRelatedField
 </s> add     serializer_related_field = HyperlinkedRelatedField
            # Populate the `child` argument on `ListField` instances generated
            # for the PostgrSQL specfic `ArrayField`.
  
          if postgres_fields and isinstance(model_field, postgres_fields.ArrayField):
            # Populate the `child` argument on `ListField` instances generated
            # for the PostgrSQL specfic `ArrayField`.
              child_model_field = model_field.base_field
              child_field_class, child_field_kwargs = self.build_standard_field(
                  'child', child_model_field
              )
keep add keep keep keep keep
 Minor cleanups/improvements to ModelSerializer API 
rest_framework/serializers.py