Fixed post delete behavior for roles, added test

This commit is contained in:
Akita Noek
2016-03-16 09:13:33 -04:00
parent 67b37e17cb
commit 9909ea90c1
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -293,4 +293,4 @@ class ImplicitRoleField(models.ForeignKey):
children = [c for c in this_role.children.all()]
this_role.delete()
for child in children:
children.rebuild_role_ancestor_list()
child.rebuild_role_ancestor_list()