#NEWLINE# @ login_required #NEWLINE# def logout( request ) : #NEWLINE# #INDENT# _request = None #NEWLINE# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# _request = request . POST . copy ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _request = request . GET . copy ( ) #NEWLINE# #UNINDENT# next_uri = _request . get ( 'next' , reverse ( 'home' ) ) #NEWLINE# auth_logout ( request ) #NEWLINE# messages . success ( request , 'Bye bye.' ) #NEWLINE# return redirect ( _request )