mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
add workflow jobs to UJ options
This commit is contained in:
parent
8e76da89f2
commit
0255b9483d
@ -250,6 +250,7 @@ class BaseSerializer(serializers.ModelSerializer):
|
||||
'project_update': _('SCM Update'),
|
||||
'inventory_update': _('Inventory Sync'),
|
||||
'system_job': _('Management Job'),
|
||||
'workflow_job': _('Workflow Job'),
|
||||
}
|
||||
choices = []
|
||||
for t in self.get_types():
|
||||
@ -666,7 +667,7 @@ class UnifiedJobListSerializer(UnifiedJobSerializer):
|
||||
|
||||
def get_types(self):
|
||||
if type(self) is UnifiedJobListSerializer:
|
||||
return ['project_update', 'inventory_update', 'job', 'ad_hoc_command', 'system_job']
|
||||
return ['project_update', 'inventory_update', 'job', 'ad_hoc_command', 'system_job', 'workflow_job']
|
||||
else:
|
||||
return super(UnifiedJobListSerializer, self).get_types()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user