Add a backref to depending tasks as "parents"

This commit is contained in:
Danny Robson 2020-06-09 13:17:18 +10:00
parent 94c6e80536
commit f11ad2c478

View File

@ -35,7 +35,8 @@ class Task(Base):
'Task', 'Task',
secondary=depends_association, secondary=depends_association,
primaryjoin=id == depends_association.c.first_id, primaryjoin=id == depends_association.c.first_id,
secondaryjoin=id == depends_association.c.second_id secondaryjoin=id == depends_association.c.second_id,
backref="parents"
) )