Seems trivial, but I'm iterating a dictionary, accessing another dictionary from the id
key of that dict. Example:
{% for choice in choices %}
{{ percentages[choice.id] }}
{% endfor %}
As in:
for choice in choices:
percentages[choice.id]
Though I get a Django error:
Could not parse the remainder: '[choice.id]' from 'percentages[choice.id]'
Which I thought may work. I tried researching and changing [choice.id]
into |get:choice.id
as a potential resolution, but that also gave me another unhelpful error.