- Mar 3, 2020
- 108
- 318
Huh. I vaguely recall trying to do something like that, but running into issues where the functions I was trying to monkey-patch were nontrivially read-only. Either the backend has changed, or I'm misremembering, or both.If all you need to do is to change text of "[name]",
then you don't need to use text filter for it.
Just override__str__
method of name.
Example in attachment.
Assuming I don't run into any issues, I'll switch to your approach (which is admittedly much more efficient) the next time I update the script.