added support for django 1.5, 1.6 custom user