Add a backref to depending tasks as "parents"
This commit is contained in:
parent
94c6e80536
commit
f11ad2c478
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user