Fixes Password reset confirm

Hey,

This patch will fix `django.contrib.auth.views.password_reset_confirm` view.
Without this password reset won't work at all due to couple of wrong `type` conversion.
Anyway, this patch is already working on a live production env.