#NEWLINE# def wiki_article_handler( sender , instance , created , **kwargs ) : #NEWLINE# #INDENT# revision = instance . current_revision #NEWLINE# if revision : #NEWLINE# #INDENT# if ( not revision . deleted ) : #NEWLINE# #INDENT# LatestArticleRevision . copy_article_revision ( revision ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# LatestArticleRevision . purge ( instance )