Add full required imports to Generating Tokens example

Previously we were missing User and post_save.
Use get_user_model instead of User in Generating Tokens example

Because that's a better way of doing it.
Merge pull request #1283 from OddBloke/master

Add required imports to Generating Tokens example, and update with get_user_model()