def get_change_summary(model1, model2):
 changes = get_changes_between_models(model1, model2, ['search_text'])
 change_descriptions = []
 for (field, delta) in changes.items():
  change_descriptions.append((_("%(field)s changed from '%(old_value)s' to '%(new_value)s'") % {'field': field, 'old_value': delta[0], 'new_value': delta[1]}))
 return '\n'.join(change_descriptions)

def get_change_summary ( model1 , model2 ) : changes = get_changes_between_models ( model1 , model2 , [ 'search_text' ] ) change_descriptions = [ ] for ( field , delta ) in changes . items ( ) : change_descriptions . append ( ( _ ( "%(field)s changed from '%(old_value)s' to '%(new_value)s'" ) % { 'field' : field , 'old_value' : delta [ 0 ] , 'new_value' : delta [ 1 ] } ) ) return '\n' . join ( change_descriptions )
generate a summary of the changes between two address models .