#NEWLINE# @ administrator_required #NEWLINE# def config_basic( request ) : #NEWLINE# #INDENT# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# form = BasicConfigForm ( data = form . POST ) #NEWLINE# if form . is_valid ( ) : #NEWLINE# #INDENT# form . save ( ) #NEWLINE# messages . info ( request , _ ( 'Settings updated!' ) ) #NEWLINE# return redirect ( request . GET . get ( 'next' , request . get_full_path ( ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# form = BasicConfigForm ( ) #NEWLINE# #UNINDENT# context = { #NEWLINE# #INDENT# 'form' : form , #NEWLINE# #UNINDENT# } #NEWLINE# return render ( request , 'spirit/admin/config_basic.html' , context )