#NEWLINE# @ admin . route ( '/save_new' , methods = [ 'POST' ] ) #NEWLINE# @ flask_login . login_required #NEWLINE# def save_new( ) : #NEWLINE# #INDENT# post_type = request . form . get ( 'post_type' , 'note' ) #NEWLINE# current_app . logger . debug ( 'saving new post of type %s' , post_type ) #NEWLINE# post = Post ( post_type ) #NEWLINE# return save_post ( post_type )