Add scm revision to the job model

This also cleans up flake8 issues
This commit is contained in:
Matthew Jones
2016-10-20 15:18:05 -04:00
parent ca32c5fd21
commit 6e22460f1e
6 changed files with 33 additions and 20 deletions

View File

@@ -559,6 +559,15 @@ class Job(UnifiedJob, JobOptions, JobNotificationMixin):
default={},
editable=False,
)
scm_revision = models.CharField(
max_length=1024,
blank=True,
default='',
editable=False,
verbose_name=_('SCM Revision'),
help_text=_('The SCM Revision from the Project used for this job, if available'),
)
@classmethod
def _get_parent_field_name(cls):