diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py
index e51cdf5..2dc1d6a 100644
a
|
b
|
class DeletionMixin(object):
|
240 | 240 | redirects to the success URL. |
241 | 241 | """ |
242 | 242 | self.object = self.get_object() |
| 243 | success_url = get_success_url() |
243 | 244 | self.object.delete() |
244 | 245 | return HttpResponseRedirect(self.get_success_url()) |
245 | 246 | |
… |
… |
class DeletionMixin(object):
|
249 | 250 | |
250 | 251 | def get_success_url(self): |
251 | 252 | if self.success_url: |
252 | | return self.success_url |
| 253 | return self.success_url % self.object.dict |
253 | 254 | else: |
254 | 255 | raise ImproperlyConfigured( |
255 | 256 | "No URL to redirect to. Provide a success_url.") |