I am fairly new to Django and I'm curious if some functionality regarding selecting specific collection values in my templates. What I'd like to do is something like this:
I have an object called content it has a key and a value property and i have a collection of that content object. I'd like to do something like this in my template:
{{ contentCollection.key["item1"].value }}
{{ contentCollection.key["item2"].value }}
rather than having to loop through it to get the key and then grab the value. Is there any way to achieve this?