fix: query for item group listing (#19604)

This commit is contained in:
Shivam Mishra 2019-11-19 14:51:25 +05:30 committed by Nabin Hait
parent f3ecfd8e58
commit 776ff2f75d

View File

@ -136,6 +136,7 @@ def get_child_groups_for_list_in_html(item_group, start, limit, search):
fields = ['name', 'route', 'description', 'image'], fields = ['name', 'route', 'description', 'image'],
filters = dict( filters = dict(
show_in_website = 1, show_in_website = 1,
parent_item_group = item_group.name,
lft = ('>', item_group.lft), lft = ('>', item_group.lft),
rgt = ('<', item_group.rgt), rgt = ('<', item_group.rgt),
), ),