Commit after updating status

This commit is contained in:
richard-dds
2018-10-25 15:25:05 -04:00
parent 09d3f33908
commit 7404cc4a59
3 changed files with 5 additions and 9 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):