code: def get_cancel_url(self):
          
          if self.cancel_url:
              return self.cancel_url
  
          ModelClass = self.get_model_class()
          return reverse('trionyx:model-list', kwargs={
              'app': ModelClass._meta.app_label,
              'model': ModelClass._meta.model_name,
          })
docs: Get cancel url