#NEWLINE# @ classmethod #NEWLINE# def log_transition( cls , transition , from_state , to_state , modified_object , **kwargs ) : #NEWLINE# #INDENT# kwargs . update ( { #NEWLINE# #INDENT# 'transition' : transition , #NEWLINE# 'from_state' : from_state , #NEWLINE# 'to_state' : to_state , #NEWLINE# cls . MODIFIED_OBJECT_FIELD : modified_object , #NEWLINE# #UNINDENT# } ) #NEWLINE# return cls . objects . create ( ** kwargs )