I’ve got a Django template that’s receiving a list of objects in the context variable browsers
.
I want to select the first object in the list, and access one of its attributes, like this:
<a class="{{ browsers|first.classified_name }}" href="">{{ browsers|first }}</a>
However, I get a syntax error related to the attribute selection .classified_name
.
Is there any way I can select an attribute of the first object in the list.