mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Fixed #19044 -- Made DeletionMixin interpolate its success_url.
Thanks to nxvl and slurms for the initial patch, ptone for the review and timo for the documentation tweaks.
This commit is contained in:
@@ -97,6 +97,8 @@ urlpatterns = patterns('',
|
||||
views.NaiveAuthorDelete.as_view()),
|
||||
(r'^edit/author/(?P<pk>\d+)/delete/redirect/$',
|
||||
views.NaiveAuthorDelete.as_view(success_url='/edit/authors/create/')),
|
||||
(r'^edit/author/(?P<pk>\d+)/delete/interpolate_redirect/$',
|
||||
views.NaiveAuthorDelete.as_view(success_url='/edit/authors/create/?deleted=%(id)s')),
|
||||
(r'^edit/author/(?P<pk>\d+)/delete/$',
|
||||
views.AuthorDelete.as_view()),
|
||||
(r'^edit/author/(?P<pk>\d+)/delete/special/$',
|
||||
|
||||
Reference in New Issue
Block a user