def get_cancel_url(self):
        """Get cancel url"""
        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,
        })
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 , } )
Get cancel url