From 1788ab7ea1a654b6f34e0eab3f65581a647837aa Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Tue, 31 Jan 2023 10:30:21 +0300 Subject: [PATCH] _allow_unmapped__ --- orm/community.py | 1 + orm/rbac.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orm/community.py b/orm/community.py index b55b857f..227c6cb9 100644 --- a/orm/community.py +++ b/orm/community.py @@ -18,6 +18,7 @@ class CommunityFollower(Base): class Community(Base): __tablename__ = "community" + __allow_unmapped__ = True name = Column(String, nullable=False, comment="Name") slug = Column(String, nullable=False, unique=True, comment="Slug") diff --git a/orm/rbac.py b/orm/rbac.py index bf1769bf..29ade72e 100644 --- a/orm/rbac.py +++ b/orm/rbac.py @@ -4,11 +4,10 @@ from sqlalchemy import String, Column, ForeignKey, UniqueConstraint, TypeDecorat from sqlalchemy.orm import relationship from base.orm import Base, REGISTRY, engine, local_session -from orm.community import Community - # Role Based Access Control # + class ClassType(TypeDecorator): impl = String