﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31913	PasswordResetConfirmView results in NoReverseMarch	Bruno Vermeulen	nobody	"In version 3.1 following test results in error:

{{{
    def test_view_function(self):
        view = resolve('/reset/{uidb64}/{token}/'.format(
            uidb64=self.uid, token=self.token))
        self.assertEqual(view.func.view_class, auth_views.PasswordResetConfirmView)
}}}
error:
{{{
django.urls.exceptions.NoReverseMatch: Reverse for 'password_reset_confirm' with keyword arguments '{'uidb64': 'MjY', 'token': 'a8w0ur-101d1596f3731a280668ba6c7f27cee5'}' not found. 1 pattern(s) tried: ['reset/(?P<uidb64>[0-9A-Za-z_\\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$']
}}}
urls.py is
{{{
    re_path(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', 
            auth_views.PasswordResetConfirmView.as_view(
                template_name='accounts/password_reset_confirm.html'),
            name='password_reset_confirm'),
}}}
same code in Django 3.09 runs just fine

"	Bug	closed	contrib.auth	3.1	Normal	invalid			Unreviewed	0	0	0	0	0	0
