Fix hardcoded `user` model in template.

This relates to #100, #105 and #108 and as suggested, here is the patch that fixes the hardcoded `user` model reference.