Fix django 1.5 custom user model support