#NEWLINE# def delete_model( self , model ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# model . delete ( ) #NEWLINE# return True #NEWLINE# #UNINDENT# except Exception as ex : #NEWLINE# #INDENT# if ( not self . handle_view_exception ( ex ) ) : #NEWLINE# #INDENT# logging . exception ( 'Failed to delete record.' ) #NEWLINE# #UNINDENT# #UNINDENT# return False