Support for Django 1.5 custom user model, with fallback to classic User model