diff --git a/kstore/tags/templatetags/hacks.py b/kstore/tags/templatetags/hacks.py index ace46e1..30f7061 100644 --- a/kstore/tags/templatetags/hacks.py +++ b/kstore/tags/templatetags/hacks.py @@ -1,8 +1,11 @@ from django import template +import itertools register = template.Library() @register.filter def product_attrs(product): - attrs = product.translated_attributes('te') + product.translated_attributes() + attrs = itertools.chain( + product.translated_attributes('te'), + product.translated_attributes()) return dict((a.name, a.value) for a in attrs) \ No newline at end of file