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
commit a25f34c3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()