You can use the source argument in a serializer field.
inventory_type_public_id = serializers.CharField(
source='inventory_type.public_id', required=False)
In the above example `inventory_type_public_id` becomes the new field name, but it's source is `inventory_type.public_id`. Notice that the source name is a dotted path from the object.
~Carl
-------------------------------------------------------------------------------
Carl J. Nobile (Software Engineer)
carl....@gmail.com-------------------------------------------------------------------------------