Merge pull request #6472 from jangsutsr/6317_make_up_missing_model_help_texts_for_job_timeout

Make up missing model help texts for job timeout
This commit is contained in:
Aaron Tan
2017-06-06 15:19:36 -04:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

View File

@@ -952,6 +952,7 @@ class InventorySourceOptions(BaseModel):
timeout = models.IntegerField( timeout = models.IntegerField(
blank=True, blank=True,
default=0, default=0,
help_text=_("The amount of time (in seconds) to run before the task is canceled."),
) )
verbosity = models.PositiveIntegerField( verbosity = models.PositiveIntegerField(
choices=INVENTORY_UPDATE_VERBOSITY_CHOICES, choices=INVENTORY_UPDATE_VERBOSITY_CHOICES,

View File

@@ -145,6 +145,7 @@ class JobOptions(BaseModel):
timeout = models.IntegerField( timeout = models.IntegerField(
blank=True, blank=True,
default=0, default=0,
help_text=_("The amount of time (in seconds) to run before the task is canceled."),
) )
store_facts = models.BooleanField( store_facts = models.BooleanField(
default=False, default=False,

View File

@@ -114,7 +114,7 @@ class ProjectOptions(models.Model):
timeout = models.IntegerField( timeout = models.IntegerField(
blank=True, blank=True,
default=0, default=0,
help_text=_("The amount of time to run before the task is canceled."), help_text=_("The amount of time (in seconds) to run before the task is canceled."),
) )
def clean_scm_type(self): def clean_scm_type(self):