示例#1
0
 def days_str(self, today=None):
     return utils.days_as_str(self.delta_days(today))
示例#2
0
 def days_str(self):
     delta_days = -1 * (utils.today() - self.scheduled).days
     if self.status == 'attended' and self.arrived is not None:
         delta_days = (utils.today() - self.arrived).days
     return utils.days_as_str(delta_days)
示例#3
0
 def days_str(self,today=None):
     return utils.days_as_str(self.delta_days(today))