def tests_get_by_job_idx(job_idx):
 return Test.objects.filter(job=job_idx)

def tests_get_by_job_idx ( job_idx ) : return Test . objects . filter ( job = job_idx )
returns all tests based on its job idx .