#NEWLINE# @ login_required #NEWLINE# def discard_clipboard( request ) : #NEWLINE# #INDENT# if True : #NEWLINE# #INDENT# return HttpResponseBadRequest ( 'not implemented anymore' ) #NEWLINE# #UNINDENT# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# clipboard = Clipboard . objects . get ( id = request . POST . get ( 'clipboard_id' ) ) #NEWLINE# tools . discard_clipboard ( clipboard ) #NEWLINE# #UNINDENT# return HttpResponseRedirect ( '{0}{1}' . format ( request . POST . get ( 'redirect_to' , '' ) , admin_url_params_encoded ( request , first_separator = '&' ) ) )