AC-1040 Model cleanup/refactor, add and use job_explanation field.

This commit is contained in:
Chris Church
2014-03-30 22:57:45 -04:00
parent e5054eeb65
commit e1d3da731e
10 changed files with 601 additions and 146 deletions

View File

@@ -261,7 +261,7 @@ class Project(UnifiedJobTemplate, ProjectOptions):
def _get_current_status(self):
if self.scm_type:
if self.current_update:
return 'updating'
return 'running'
elif not self.last_job:
return 'never updated'
elif self.last_job_failed: