code: def get_success_url(self):
          
          messages.success(self.request, "Successfully deleted ({})".format(self.object))
          if self.success_url:
              return reverse(self.success_url)
  
          if 'app' in self.kwargs and 'model' in self.kwargs:
              return reverse('trionyx:model-list', kwargs={
                  'app': self.kwargs.get('app'),
                  'model': self.kwargs.get('model'),
              })
  
          return '/'
docs: Get success url