#NEWLINE# @ staff_member_required #NEWLINE# def filebrowser_remove_file( request , item_id , file_type ) : #NEWLINE# #INDENT# ' Remove file ' #NEWLINE# fobj = get_object_or_404 ( FileBrowserFile , file_type = file_type , id = item_id ) #NEWLINE# fobj . delete ( ) #NEWLINE# if ( file_type == 'doc' ) : #NEWLINE# #INDENT# return HttpResponseRedirect ( reverse ( 'mce-filebrowser-documents' ) ) #NEWLINE# #UNINDENT# return HttpResponseRedirect ( reverse ( 'mce-filebrowser-images' ) )