def job_get_by_tag(tag):
 try:
  job = Job.objects.get(tag=tag)
  return job
 except Job.DoesNotExist:
  return None

def job_get_by_tag ( tag ) : try : job = Job . objects . get ( tag = tag ) return job except Job . DoesNotExist : return None
return a job based on its tag .