mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
[1.8.x] Fixed #24220 - Allowed lazy objects for success_url
Backport of 511be35779 from master
This commit is contained in:
committed by
Tim Graham
parent
2d990fb7fa
commit
5dff3513cc
@@ -172,9 +172,7 @@ class SpecializedAuthorDelete(generic.DeleteView):
|
||||
queryset = Author.objects.all()
|
||||
template_name = 'generic_views/confirm_delete.html'
|
||||
context_object_name = 'thingy'
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse('authors_list')
|
||||
success_url = reverse_lazy('authors_list')
|
||||
|
||||
|
||||
class BookConfig(object):
|
||||
|
||||
Reference in New Issue
Block a user