#NEWLINE# def finalize( self , sender , **kwargs ) : #NEWLINE# #INDENT# log_entry_model = self . create_log_entry_model ( sender ) #NEWLINE# models . signals . post_save . connect ( self . post_save , sender = sender , weak = False ) #NEWLINE# models . signals . post_delete . connect ( self . post_delete , sender = sender , weak = False ) #NEWLINE# descriptor = AuditLogDescriptor ( log_entry_model , sender . manager_class , self . manager_name ) #NEWLINE# setattr ( sender , self . manager_name , descriptor )