fix(website): Pagination in child item groups

Item groups pages which had child item groups were not paged at all
despite having next, prev buttons
This commit is contained in:
Faris Ansari 2018-12-28 14:47:51 +05:30
parent 1fa3f7d81e
commit af75d9a384

View File

@ -136,7 +136,10 @@ def get_child_groups_for_list_in_html(item_group, start, limit, search):
rgt = ('<', item_group.rgt),
),
or_filters = search_filters,
order_by = 'weightage desc, name asc')
order_by = 'weightage desc, name asc',
start = start,
limit = limit
)
return [get_item_for_list_in_html(r) for r in data]