From 92b010f0a98a71ed67f174b79f15fcd7613da507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98KimigaiiWuyi=E2=80=99?= <444835641@qq.com> Date: Mon, 11 Dec 2023 15:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=A1=A8=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/utils/database/base_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsuid_core/utils/database/base_models.py b/gsuid_core/utils/database/base_models.py index f77f54b..d222c0c 100644 --- a/gsuid_core/utils/database/base_models.py +++ b/gsuid_core/utils/database/base_models.py @@ -45,7 +45,7 @@ def with_session( # https://github.com/tiangolo/sqlmodel/issues/264 -class BaseIDModel(SQLModel, registry=registry()): +class BaseIDModel(SQLModel): id: Optional[int] = Field(default=None, primary_key=True, title='序号') @classmethod