Support custom user model from django 1.5