Treat instance_groups prompt as template-less

This commit is contained in:
Alan Rominger
2022-09-20 11:04:37 -04:00
parent 23f4f7bb00
commit 61093b2532
7 changed files with 15 additions and 50 deletions

View File

@@ -292,7 +292,6 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, SurveyJobTemplateMixin, Resour
'job_slice_number',
'job_slice_count',
'execution_environment',
'instance_groups',
]
)
@@ -605,13 +604,6 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
default=1,
help_text=_("If ran as part of sliced jobs, the total number of slices. " "If 1, job is not part of a sliced job."),
)
instance_groups = OrderedManyToManyField(
'InstanceGroup',
related_name='job_instance_groups',
blank=True,
editable=False,
through='JobInstanceGroupMembership',
)
def _get_parent_field_name(self):
return 'job_template'