@newrelic.agent.function_trace()
@block_user_agents
@prevent_indexing
@process_document_path
def revision(request, document_slug, document_locale, revision_id):
 rev = get_object_or_404(Revision.objects.select_related('document'), pk=revision_id, document__slug=document_slug)
 context = {'document': rev.document, 'revision': rev, 'comment': format_comment(rev)}
 return render(request, 'wiki/revision.html', context)

@ newrelic . agent . function_trace ( ) @ block_user_agents @ prevent_indexing @ process_document_path def revision ( request , document_slug , document_locale , revision_id ) : rev = get_object_or_404 ( Revision . objects . select_related ( 'document' ) , pk = revision_id , document__slug = document_slug ) context = { 'document' : rev . document , 'revision' : rev , 'comment' : format_comment ( rev ) } return render ( request , 'wiki/revision.html' , context )
return an empty revision with enough stuff filled out that it can be saved .