Sorry I was unclear about that, especially with the duplicated name.
The 'description' can be whatever string you want to use to describe
the transaction. You could use the old
'get_transaction().description' for this, but it would include the
original (probably unwanted) path. Also, the auto-generated
descriptions don't have much in the way of useful content. The only
thing that seems to matter is that you set the first string in the
description to the path of the proper object, everything else is up
to you (the ':' I added is entirely optional, for me it adds better
readability). So you could use something like this:
description = 'Changed foo.bar from 35.0 to 25.0; Changed foo.Title
to "BarBaz"'
Or whatever you might find useful. |