Exemple #1
0
 def get_task_status(self):
     return InstanceTask.from_code(self.task_id)
Exemple #2
0
 def get_task_status(self):
     return InstanceTask.from_code(self.task_id)
Exemple #3
0
 def _validate(self, errors):
     if InstanceTask.from_code(self.task_id) is None:
         errors['task_id'] = "Not valid."
     if self.task_status is None:
         errors['task_status'] = "Cannot be None."
Exemple #4
0
 def _validate(self, errors):
     if InstanceTask.from_code(self.task_id) is None:
         errors['task_id'] = "Not valid."
     if self.task_status is None:
         errors['task_status'] = "Cannot be None."