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})

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 .