예제 #1
0
파일: models.py 프로젝트: 512868516/trove
 def task_status(self):
     return ClusterTask.from_code(self.task_id)
예제 #2
0
 def task_status(self):
     return ClusterTask.from_code(self.task_id)
예제 #3
0
파일: models.py 프로젝트: 512868516/trove
 def _validate(self, errors):
     if ClusterTask.from_code(self.task_id) is None:
         errors['task_id'] = "Not valid."
     if self.task_status is None:
         errors['task_status'] = "Cannot be None."
예제 #4
0
 def _validate(self, errors):
     if ClusterTask.from_code(self.task_id) is None:
         errors['task_id'] = "Not valid."
     if self.task_status is None:
         errors['task_status'] = "Cannot be None."