Tweak relationship for Department._super_parents
since there can be more than one
This commit is contained in:
parent
e2dc00b469
commit
74a28514dc
|
@ -100,7 +100,9 @@ class SuperDepartment(Base):
|
||||||
doc="""
|
doc="""
|
||||||
Reference to the child department for this mapping.
|
Reference to the child department for this mapping.
|
||||||
""",
|
""",
|
||||||
backref=orm.backref('_super_parent', uselist=False))
|
backref=orm.backref(
|
||||||
|
'_super_parents',
|
||||||
|
order_by=parent_id))
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "{} / {}".format(self.parent, self.child)
|
return "{} / {}".format(self.parent, self.child)
|
||||||
|
|
Loading…
Reference in a new issue