#NEWLINE# def cleanup( self ) : #NEWLINE# #INDENT# cursor = self . connection_for_write ( ) . cursor ( ) #NEWLINE# try : #NEWLINE# #INDENT# cursor . execute ( ( 'DELETE FROM %s WHERE visible=%%s' % ( cursor . model . _meta . db_table , ) ) , ( False , ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# transaction . rollback_unless_managed ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# transaction . commit_unless_managed ( )