Add Support for Custom User Model in Django 1.5+

Just a small update to enable support for custom user models in Django 1.5+, while maintaining support for earlier versions.