Support for custom user model (django 1.5)

Support for custom user model (django 1.5)