1
0
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:
Simon Charette
2013-02-11 02:39:14 -05:00
parent 5ce6a7cea2
commit a10f390804
5 changed files with 29 additions and 8 deletions

View File

@@ -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/$',