I have
{% for competency in domain.competency_set.all %}
<td> {{competency.id}} {{scoredict.8}} {% with cid=competency.id %} {{ scoredict.cid }} {% endwith %} </td>
so scoredict.8 displays a value but when competency.id is 8, scoredict.cid comes up empty. What am I doing wrong? What's the workaround?
I can see why scoredict.competency.id doesn't work, but I don't see how to change the order of evaluation. If I could force order of evaluation with parentheses I'd want something like scoredict.(competency.id)