Add support for Django 1.5 custom users

This small patch adds support for using custom user models as introduced in django 1.5