Merge pull request #18840 from netchampfaris/missing-parent-item-group

fix: Set default Parent Item Group
This commit is contained in:
Deepesh Garg 2019-09-02 12:22:49 +05:30 committed by GitHub
commit e26b55265f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ class ItemGroup(NestedSet, WebsiteGenerator):
def validate(self):
super(ItemGroup, self).validate()
if not self.parent_item_group:
self.parent_item_group = 'All Item Groups'
self.make_route()
def on_update(self):