#31913: url PasswordResetConfirmView results in NoReverseMarch
-----------------------------------------+------------------------
Reporter: bvermeulen | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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
--
Ticket URL: <https://code.djangoproject.com/ticket/31913>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.853f2c048373132423e7adc50ca744cf%40djangoproject.com.