1
0
mirror of https://github.com/django/django.git synced 2025-10-29 08:36:09 +00:00

[2.0.x] Fixed #28837 -- Fixed test client crash if an exception with more than one arg is raised.

Also removed usage of the problematic pattern elsewhere.

Regression in 6e55e1d88a.

Backport of 746caf3ef8 from master
This commit is contained in:
Nicolas Delaby
2017-11-23 17:18:03 +01:00
committed by Tim Graham
parent aba31aa86b
commit ae4132a940
6 changed files with 21 additions and 8 deletions

View File

@@ -34,6 +34,7 @@ urlpatterns = [
url(r'^mass_mail_sending_view/$', views.mass_mail_sending_view),
url(r'^nesting_exception_view/$', views.nesting_exception_view),
url(r'^django_project_redirect/$', views.django_project_redirect),
url(r'^two_arg_exception/$', views.two_arg_exception),
url(r'^accounts/$', RedirectView.as_view(url='login/')),
url(r'^accounts/no_trailing_slash$', RedirectView.as_view(url='login/')),