Beispiel #1
0
 def get_task_status(self):
     return InstanceTask.from_code(self.task_id)
Beispiel #2
0
 def get_task_status(self):
     return InstanceTask.from_code(self.task_id)
Beispiel #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."
Beispiel #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."