title: Using get_success_url on a DeleteView when relevant data has been removed
body: <p>In a Django application working with recipes I have subclassed <code>DeleteView</code> to create my <code>IngredientListItemDeleteView</code>, but I would like the result of <code>get_success_url</code> to depend on a property of the item that was just deleted.</p>
  
  <p>I would like to do something like this:</p>
  
  <pre><code>def get_success_url(self):
      item = get_object_or_404(IngredientListItem, pk=self.kwargs['pk'])   # -&gt; 404
      return this_item.recipe.get_absolute_url()
  </code></pre>
  
  <p>I understand that I get a 404 error because the item in question no longer exists but I have had no luck storing the relevant information about the item (namely, its containing recipe) before it gets deleted. For instance, if I put into the <code>get</code> method any code like </p>
  
  <pre><code>self.success_url = get_object_or_404(IngredientListItem, 
                                  pk=self.kwargs['pk']).recipe.get_absolute_url()
  </code></pre>
  
  <p>then by the time <code>success_url</code> is looked at (after deletion), it has the value None.</p>
  
  <p>How can I make my success URL depend on this property of the deleted item?</p>