fixed user incompatibility with django 1.7