Use `obj` instead of `self` in `post_generation` example