_allow_unmapped__
This commit is contained in:
parent
92b6aece57
commit
1788ab7ea1
|
@ -18,6 +18,7 @@ class CommunityFollower(Base):
|
||||||
|
|
||||||
class Community(Base):
|
class Community(Base):
|
||||||
__tablename__ = "community"
|
__tablename__ = "community"
|
||||||
|
__allow_unmapped__ = True
|
||||||
|
|
||||||
name = Column(String, nullable=False, comment="Name")
|
name = Column(String, nullable=False, comment="Name")
|
||||||
slug = Column(String, nullable=False, unique=True, comment="Slug")
|
slug = Column(String, nullable=False, unique=True, comment="Slug")
|
||||||
|
|
|
@ -4,11 +4,10 @@ from sqlalchemy import String, Column, ForeignKey, UniqueConstraint, TypeDecorat
|
||||||
from sqlalchemy.orm import relationship
|
from sqlalchemy.orm import relationship
|
||||||
|
|
||||||
from base.orm import Base, REGISTRY, engine, local_session
|
from base.orm import Base, REGISTRY, engine, local_session
|
||||||
from orm.community import Community
|
|
||||||
|
|
||||||
|
|
||||||
# Role Based Access Control #
|
# Role Based Access Control #
|
||||||
|
|
||||||
|
|
||||||
class ClassType(TypeDecorator):
|
class ClassType(TypeDecorator):
|
||||||
impl = String
|
impl = String
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user