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