fixed support for django => 1.5 custom user model