#NEWLINE# def perform_approve( request , comment ) : #NEWLINE# #INDENT# ( flag , created ) = comments . models . CommentFlag . objects . get_or_create ( comment = comment , user = request . user , flag = comments . models . CommentFlag . MODERATOR_APPROVAL ) #NEWLINE# comment . is_removed = False #NEWLINE# comment . is_public = True #NEWLINE# comment . save ( ) #NEWLINE# signals . comment_was_flagged . send ( sender = comment . __class__ , comment = comment , flag = flag , created = created , request = request )