Commit bb2bfa6e authored by Jérome Perrin's avatar Jérome Perrin

Amount: repair filter by base category list

parent d4d1c020
...@@ -127,6 +127,8 @@ class Amount(Base, VariatedMixin): ...@@ -127,6 +127,8 @@ class Amount(Base, VariatedMixin):
kw['display_id'] = 'title' kw['display_id'] = 'title'
for base_category, (object_list, for base_category, (object_list,
category_list) in variation_dict.iteritems(): category_list) in variation_dict.iteritems():
if base_category_list and base_category not in base_category_list:
continue
variation_category_item_list += render_category_list(category_list) variation_category_item_list += render_category_list(category_list)
variation_category_item_list += Renderer(base_category=base_category, variation_category_item_list += Renderer(base_category=base_category,
**kw).render(object_list) **kw).render(object_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment