Declare helper properties on Request and RequestStatusEvent

This commit is contained in:
richard-dds
2018-08-08 11:13:22 -04:00
parent 47a4635edd
commit 0c378ba07c
3 changed files with 9 additions and 3 deletions

View File

@@ -23,3 +23,7 @@ class Request(Base):
@property
def status(self):
return self.status_events[-1].new_status
@property
def status_displayname(self):
return self.status_events[-1].displayname