Adding help text to various job fields

This commit is contained in:
Matthew Jones
2016-12-06 12:18:17 -05:00
parent ebb0f06b17
commit 51461a27da

View File

@@ -431,6 +431,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
blank=True, blank=True,
default='', default='',
editable=False, editable=False,
help_text=_("The Tower node the job executed on."),
) )
notifications = models.ManyToManyField( notifications = models.ManyToManyField(
'Notification', 'Notification',
@@ -456,16 +457,19 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
null=True, null=True,
default=None, default=None,
editable=False, editable=False,
help_text=_("The date and time the job was queued for starting."),
) )
finished = models.DateTimeField( finished = models.DateTimeField(
null=True, null=True,
default=None, default=None,
editable=False, editable=False,
help_text=_("The date and time the job finished execution."),
) )
elapsed = models.DecimalField( elapsed = models.DecimalField(
max_digits=12, max_digits=12,
decimal_places=3, decimal_places=3,
editable=False, editable=False,
help_text=_("Elapsed time in seconds that the job ran."),
) )
job_args = models.TextField( job_args = models.TextField(
blank=True, blank=True,
@@ -487,6 +491,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
blank=True, blank=True,
default='', default='',
editable=False, editable=False,
help_text=_("A status field to indicate the state of the job if it wasn't able to run and capture stdout"),
) )
start_args = models.TextField( start_args = models.TextField(
blank=True, blank=True,