#NEWLINE# def log_transition( self , transition , from_state , instance , * args , **kwargs ) : #NEWLINE# #INDENT# 'Generic transition logging.' #NEWLINE# save = kwargs . pop ( 'save' , True ) #NEWLINE# log = kwargs . pop ( 'log' , True ) #NEWLINE# super ( Workflow , self ) . log_transition ( transition , from_state , instance , * args , ** kwargs ) #NEWLINE# if save : #NEWLINE# #INDENT# instance . save ( ) #NEWLINE# #UNINDENT# if save : #NEWLINE# #INDENT# self . db_log ( transition , from_state , instance , * args , ** kwargs )