Implement TO start_date and end_date

This commit is contained in:
richard-dds
2019-06-06 11:53:44 -04:00
parent 898f63a2f5
commit 7b8ccbf145
3 changed files with 37 additions and 8 deletions

View File

@@ -70,15 +70,11 @@ class TaskOrder(Base, mixins.TimestampsMixin):
@property
def start_date(self):
# TODO: fix task order -- reimplement using CLINs
# Faked for display purposes
return date.today()
return min(c.start_date for c in self.clins)
@property
def end_date(self):
# TODO: fix task order -- reimplement using CLINs
# Faked for display purposes
return date.today()
return max(c.end_date for c in self.clins)
@property
def days_to_expiration(self):