From b18f6b8e0f8d2bd96fb2c09b4305adb7f3eff0d6 Mon Sep 17 00:00:00 2001 From: luolu Date: Fri, 20 May 2022 08:31:01 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20tenant=20url=20name?= =?UTF-8?q?space?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arkid/core/extension/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkid/core/extension/__init__.py b/arkid/core/extension/__init__.py index b9705abae..cea5f1c07 100644 --- a/arkid/core/extension/__init__.py +++ b/arkid/core/extension/__init__.py @@ -320,7 +320,7 @@ def register_routers(self, urls_ext:List[partial], tenant_urls=False): tenant_urls (bool, optional): 是否要添加 tenant/{tenant_id}/ 前缀. Defaults to False. """ if tenant_urls: - urls_ext = [re_path(r'tenant/(?P[\w-]+)/', include((urls_ext, 'extension'), namespace=f'{self.name}'))] + urls_ext = [re_path(r'tenant/(?P[\w-]+)/', include((urls_ext, 'extension'), namespace=f'{self.name}_tenant'))] self.urls.extend(urls_ext) core_urls.register(urls_ext) else: