def job_get_by_id(job_id):
 try:
  job = Job.objects.get(pk=job_id)
  return job
 except Job.DoesNotExist:
  return None

def job_get_by_id ( job_id ) : try : job = Job . objects . get ( pk = job_id ) return job except Job . DoesNotExist : return None
return a job based on its id .