changed the field name from 'container_options' to simply 'pull'

This commit is contained in:
Rebeccah
2021-02-09 11:40:44 -05:00
committed by Shane McDonald
parent b0265b060b
commit 4b40cb3abb
9 changed files with 29 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ class Migration(migrations.Migration):
operations = [
migrations.AddField(
model_name='executionenvironment',
name='container_options',
field=models.CharField(choices=[('always', 'Always pull container before running.'), ('missing', 'No pull option has been selected'), ('never', 'Never pull container before running')], default='missing', help_text='Pull image before running?', max_length=1024),
name='pull',
field=models.CharField(choices=[('always', 'Always pull container before running.'), ('missing', 'No pull option has been selected.'), ('never', 'Never pull container before running.')], default='missing', help_text='Pull image before running?', max_length=1024),
),
]

View File

@@ -14,8 +14,8 @@ class ExecutionEnvironment(CommonModel):
PULL_CHOICES = [
('always', _("Always pull container before running.")),
('missing', _("No pull option has been selected")),
('never', _("Never pull container before running"))
('missing', _("No pull option has been selected.")),
('never', _("Never pull container before running."))
]
organization = models.ForeignKey(
@@ -41,7 +41,7 @@ class ExecutionEnvironment(CommonModel):
default=None,
on_delete=models.SET_NULL,
)
container_options = models.CharField(
pull = models.CharField(
max_length=1024,
choices=PULL_CHOICES,
default='missing',