#NEWLINE# def delete( self ) : #NEWLINE# #INDENT# subscriptions = Subscription . objects . filter ( customer = self ) #NEWLINE# for sub in subscriptions : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# sub . cancel ( ) #NEWLINE# sub . save ( ) #NEWLINE# #UNINDENT# except TransitionNotAllowed : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# super ( Customer , self ) . delete ( )