From 600bda2e43278e878fabad4d302e24d7e3d25ad5 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Tue, 31 Jan 2023 10:44:06 +0300 Subject: [PATCH] base-unmapped --- base/orm.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/base/orm.py b/base/orm.py index 631ac030..3001f40b 100644 --- a/base/orm.py +++ b/base/orm.py @@ -28,12 +28,11 @@ class Base(declarative_base()): __tablename__: str __new__: Callable __init__: Callable - # qualify the base with __allow_unmapped__. Can also be - # applied to classes directly if preferred __allow_unmapped__ = True - __abstract__: bool = True + __abstract__ = True __table_args__ = {"extend_existing": True} - id: int = Column(Integer, primary_key=True) + + id = Column(Integer, primary_key=True) def __init_subclass__(cls, **kwargs): REGISTRY[cls.__name__] = cls