@newrelic.agent.function_trace()
@allow_CORS_GET
@prevent_indexing
def _document_deleted(request, deletion_logs):
 if (request.user and request.user.has_perm('wiki.restore_document')):
  deletion_log = deletion_logs.order_by('-pk')[0]
  context = {'deletion_log': deletion_log}
  return render(request, 'wiki/deletion_log.html', context, status=404)
 raise Http404

@ newrelic . agent . function_trace ( ) @ allow_CORS_GET @ prevent_indexing def _document_deleted ( request , deletion_logs ) : if ( request . user and request . user . has_perm ( 'wiki.restore_document' ) ) : deletion_log = deletion_logs . order_by ( '-pk' ) [ 0 ] context = { 'deletion_log' : deletion_log } return render ( request , 'wiki/deletion_log.html' , context , status = 404 ) raise Http404
when a document has been deleted return a 404 .