Review history #159038479
This commit is contained in:
dandds
2018-09-11 11:14:28 -04:00
committed by GitHub
5 changed files with 59 additions and 55 deletions

View File

@@ -20,3 +20,15 @@ class RequestReview(Base):
phone_mao = Column(String)
fname_ccpo = Column(String)
lname_ccpo = Column(String)
@property
def full_name_reviewer(self):
return self.reviewer.full_name
@property
def full_name_mao(self):
return "{} {}".format(self.fname_mao, self.lname_mao)
@property
def full_name_ccpo(self):
return "{} {}".format(self.fname_ccpo, self.lname_ccpo)

View File

@@ -42,3 +42,12 @@ class RequestStatusEvent(Base):
@property
def displayname(self):
return self.new_status.value
@property
def log_name(self):
if self.new_status == RequestStatus.CHANGES_REQUESTED:
return "Denied"
elif self.new_status == RequestStatus.PENDING_FINANCIAL_VERIFICATION:
return "Accepted"
else:
return self.displayname