code: def get_model_alias(self, model_alias):
          
          from trionyx.models import BaseModel
          if inspect.isclass(model_alias) and issubclass(model_alias, BaseModel):
              config = models_config.get_config(model_alias)
              return '{}.{}'.format(config.app_label, config.model_name)
          return model_alias
docs: Get model alias if class then convert to alias string