Fixing serializers per review

Removing try/except around instance_groups

Removing redefined execution_environment

Reordering labels/creds/igs/ee/etc

Removing special treatment for EEs when doing setattrs

Adding help_text to execution environments

Adding EE serializer on JobCreateScheduleSerializer
This commit is contained in:
John Westcott IV
2022-09-15 10:00:58 -04:00
committed by Alan Rominger
parent ffe970aee5
commit a528a78e0e
3 changed files with 19 additions and 16 deletions

View File

@@ -1021,7 +1021,13 @@ class LaunchTimeConfig(LaunchTimeConfigBase):
credentials = models.ManyToManyField('Credential', related_name='%(class)ss')
labels = models.ManyToManyField('Label', related_name='%(class)s_labels')
execution_environment = models.ForeignKey(
'ExecutionEnvironment', null=True, blank=True, default=None, on_delete=polymorphic.SET_NULL, related_name='%(class)s_as_prompt'
'ExecutionEnvironment',
null=True,
blank=True,
default=None,
on_delete=polymorphic.SET_NULL,
related_name='%(class)s_as_prompt',
help_text="The container image to be used for execution.",
)
@property