How to change the template tag based on another template tag.
task_count = {1 :3, 2: 0, 3: 1} --- i manually created
task_type = {1:rebuild,2:upgrade,3:provisioning} ---- this from table
I want to get the task count for ex: if the task id 1 then "Rebuild:3".
I tried the below code it's not working
{% for task in TaskTypeTag %}
{{task_count.{{task.id}}}}