Hi Adrian,

> In your case, pass ITEM_NAMES[item.type]
> to the template context.

Easier said than done. The template was intended to do something like
this:

{% for item in items %}
    <li>{{ ITEM_NAMES[item.type] }}</li>
{% endfor %}

Is it possible to achieve this without passing an additional item_types
list to the context?

Andreas

Reply via email to