support for custom user model since django 1.5