Add a host_name field to JobHostSummary and migrate to it, so we have at

least that information in job data if the host has been removed
This commit is contained in:
Matthew Jones
2014-07-11 16:02:37 -04:00
parent fb9596d00f
commit f93e60979f
4 changed files with 885 additions and 1 deletions

View File

@@ -1300,7 +1300,7 @@ class JobHostSummarySerializer(BaseSerializer):
class Meta:
model = JobHostSummary
fields = ('*', '-name', '-description', 'job', 'host', 'changed',
fields = ('*', '-name', '-description', 'job', 'host', 'host_name', 'changed',
'dark', 'failures', 'ok', 'processed', 'skipped', 'failed')
def get_related(self, obj):