Merge pull request #18840 from netchampfaris/missing-parent-item-group
fix: Set default Parent Item Group
This commit is contained in:
commit
e26b55265f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user