Merge pull request #4390 from AlanCoding/do_not_copy_labels

Do not copy WFJT labels in 3.1
This commit is contained in:
Alan Rominger 2016-12-15 10:06:46 -05:00 committed by GitHub
commit 600c94dd40

View File

@ -366,7 +366,9 @@ class WorkflowJobTemplate(UnifiedJobTemplate, WorkflowJobOptions, SurveyJobTempl
@classmethod
def _get_unified_jt_copy_names(cls):
return (super(WorkflowJobTemplate, cls)._get_unified_jt_copy_names() +
base_list = super(WorkflowJobTemplate, cls)._get_unified_jt_copy_names()
base_list.remove('labels')
return (base_list +
['survey_spec', 'survey_enabled', 'organization'])
def get_absolute_url(self):