this is my code. I am trying to translate xml string into python list to be shown in html template.
self.task_xml = \"
You are accessing the dictionary wrongly. You need to use subscript with string 'id' , Example -
'id'
taskViewModel = TaskViewModel(task['id'], True)