def list_history(request):
  history = History.objects

  if not request.user.is_superuser:
    history = history.filter(submitter=request.user)
  history = history.order_by('-submission_date')

  return render('editor/list_history.mako', request, {
    'history': history,
  })
List the job submission history.
dataset/ETHPy150Open cloudera/hue/apps/oozie/src/oozie/views/editor.py/list_history