From 56fd3a5a4b34602ab85b312408687adad94f721e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 20 Aug 2020 14:41:38 -0500 Subject: [PATCH] Tweak relationship for `Department._super_parents` --- tailbone_corepos/views/corepos/superdepartments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone_corepos/views/corepos/superdepartments.py b/tailbone_corepos/views/corepos/superdepartments.py index 6d0aeaf..e5a2689 100644 --- a/tailbone_corepos/views/corepos/superdepartments.py +++ b/tailbone_corepos/views/corepos/superdepartments.py @@ -125,7 +125,7 @@ class SuperDepartmentView(base.DepartmentView): return query def get_parent(self, child): - return child._super_parent.parent + return child._super_parents[0].parent def configure_row_grid(self, g): super(SuperDepartmentView, self).configure_row_grid(g)