Merge pull request #412 from dod-ccpo/status-change-emails

Notify PSO or MO of request status change
This commit is contained in:
richard-dds
2018-11-01 10:13:39 -04:00
committed by GitHub
14 changed files with 198 additions and 66 deletions

View File

@@ -119,11 +119,11 @@ class Request(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
@property
def latest_status(self):
return self.status_events[-1]
return self.status_events[-1] if self.status_events else None
@property
def status(self):
return self.latest_status.new_status
return self.latest_status.new_status if self.latest_status else None
@property
def status_displayname(self):