def get_jobs(self, cmp):
     # jobs = JobModel.objects.filter(jobejob.id, parent=None).all()
     return JobSimpleSerializer(cmp.pt_get_jobs(), many=True).data
Exemple #2
0
 def get_jobs_list(self, regression):
     jobs = regression.pt_get_all_jobs()
     return JobSimpleSerializer(jobs, many=True).data
Exemple #3
0
 def prepare_results(self, qs):
     return JobSimpleSerializer(qs, many=True).data
Exemple #4
0
 def get_last_job(self, regression):
     return JobSimpleSerializer(regression.last_job, many=False).data