Added support for custom User model used in Django 1.5