migration wip

This commit is contained in:
2021-08-20 12:30:52 +03:00
parent 3075dbb64b
commit f756cb9fb6
3 changed files with 4 additions and 2 deletions

View File

@@ -26,3 +26,4 @@ class Topic(Base):
parents = relationship(lambda: Topic, secondary=Connection, primaryjoin=slug==Connection.c.parent, secondaryjoin=slug==Connection.c.child, viewonly=True)
# list of Topics where the current node is the "parent"
children = relationship(lambda: Topic, secondary=Connection, primaryjoin=slug==Connection.c.child, secondaryjoin=slug==Connection.c.parent)