made compatible with django 1.5 custom User model