1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

AC-1121 Renamed job_type to unified_job_type on summary fields for schedules.

This commit is contained in:
Chris Church 2014-04-03 13:42:01 -04:00
parent 6fb16375a1
commit 9a7d77ffe3
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ SUMMARIZABLE_FK_FIELDS = {
'job': DEFAULT_SUMMARY_FIELDS + ('status', 'failed',),
'job_template': DEFAULT_SUMMARY_FIELDS,
'schedule': DEFAULT_SUMMARY_FIELDS + ('next_run',),
'unified_job_template': DEFAULT_SUMMARY_FIELDS + ('job_type',),
'unified_job_template': DEFAULT_SUMMARY_FIELDS + ('unified_job_type',),
'last_job': DEFAULT_SUMMARY_FIELDS + ('status', 'failed', 'license_error'),
'last_job_host_summary': DEFAULT_SUMMARY_FIELDS + ('failed',),
'last_update': DEFAULT_SUMMARY_FIELDS + ('status', 'failed', 'license_error'),
@ -279,7 +279,7 @@ class BaseSerializer(serializers.ModelSerializer):
if isinstance(fkval, PolymorphicModel):
fkval = fkval.get_real_instance()
fval = get_type_for_model(fkval)
elif fval is None and field == 'job_type' and isinstance(fkval, UnifiedJobTemplate):
elif fval is None and field == 'unified_job_type' and isinstance(fkval, UnifiedJobTemplate):
fkval = fkval.get_real_instance()
fval = get_type_for_model(fkval._get_unified_job_class())
if fval is not None:

View File

@ -44,7 +44,7 @@ angular.module('ScheduledJobsDefinition', [])
noLink: true,
columnClass: "col-md-2 hidden-sm hidden-xs",
sourceModel: 'unified_job_template',
sourceField: 'job_type',
sourceField: 'unified_job_type',
ngBind: 'schedule.type_label',
searchable: false,
nosort: true