I have a dictionary named income in a django template, I also have a list named factors in my template and I want something like this :
{% for factor in factors%} <div> {{ income[factor.id] }} </div> {% endfor %} but {{ income[factor.id] }} is wrong, how can I do something like this?