From f11ad2c4787481dbfd5fe0fca9ce9236c6f0e466 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 9 Jun 2020 13:17:18 +1000 Subject: [PATCH] Add a backref to depending tasks as "parents" --- src/pyelephant.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyelephant.py b/src/pyelephant.py index ee445bc..6292f86 100755 --- a/src/pyelephant.py +++ b/src/pyelephant.py @@ -35,7 +35,8 @@ class Task(Base): 'Task', secondary=depends_association, primaryjoin=id == depends_association.c.first_id, - secondaryjoin=id == depends_association.c.second_id + secondaryjoin=id == depends_association.c.second_id, + backref="parents" )