Fixed #19044 -- Allow get_success_url to use self.object in DeletionMixin

Added tests, thanks to nxvl for the initial patch and ptone for reviewing the ticket.