Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Dec 21, 2011
1 parent 14af8a2 commit 967574b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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)

0 comments on commit 967574b

Please sign in to comment.