Merge pull request #36313 from barredterra/delete-root-item-group

fix(Item Group): allow root deletion
This commit is contained in:
Deepesh Garg
2023-07-27 21:14:44 +05:30
committed by GitHub

View File

@@ -73,7 +73,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
return self.route
def on_trash(self):
NestedSet.on_trash(self)
NestedSet.on_trash(self, allow_root_deletion=True)
WebsiteGenerator.on_trash(self)
self.delete_child_item_groups_key()