'Sets a task as active and sets the time started to the current time.'

def activate(self):

    logging.info('Starting:    %s', self)
    self.is_active = True
    self.time_started = datetime.now()
    self.save()
