#NEWLINE# def delete( self , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        Do some extra processing along with the actual delete to db.\n        ' #NEWLINE# Resource = get_model ( 'resources' , 'Resource' ) #NEWLINE# RLStats = get_model ( 'resources' , 'RLStats' ) #NEWLINE# res = Resource . objects . filter ( project = self . project ) #NEWLINE# for r in res : #NEWLINE# #INDENT# ( rl , created ) = RLStats . objects . get_or_create ( resource = r , language = self . language ) #NEWLINE# if ( rl . translated == 0 ) : #NEWLINE# #INDENT# rl . delete ( ) #NEWLINE# #UNINDENT# invalidate_template_cache ( 'project_resource_details' , self . project . slug , r . slug ) #NEWLINE# invalidate_template_cache ( 'resource_details' , self . project . slug , r . slug ) #NEWLINE# #UNINDENT# super ( Team , self ) . delete ( * rl , ** kwargs )