mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Fix AC-1004, Instead of using serializers.Field() which will force a repr() of the object... use serializers.PrimaryKeyField() which will use the expected field type for the response
This commit is contained in:
parent
867c22c36c
commit
77e77d905a
@ -443,8 +443,8 @@ class InventorySerializer(BaseSerializerWithVariables):
|
||||
class HostSerializer(BaseSerializerWithVariables):
|
||||
|
||||
# Allow the serializer to treat these fields as read-only
|
||||
last_job = serializers.Field()
|
||||
last_job_host_summary = serializers.Field()
|
||||
last_job = serializers.PrimaryKeyRelatedField(read_only=True)
|
||||
last_job_host_summary = serializers.PrimaryKeyRelatedField(read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = Host
|
||||
|
Loading…
Reference in New Issue
Block a user