django 1.5 compatibility issue

this permit password reset on django 1.5