Fix AC-981, mark last_job* fields as read only on the host serializer so activity stream will ignore them when processing events

This commit is contained in:
Matthew Jones 2014-01-31 09:04:07 -05:00
parent bb0a2887d5
commit 867c22c36c

View File

@ -442,6 +442,10 @@ 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()
class Meta:
model = Host
fields = BASE_FIELDS + ('inventory', 'enabled', 'instance_id', 'variables',