if I have a variable in the context of unknown length, for example; list=[{\'key\':\'A\'},{\'key\':\'B\'},{\'key\':\'C\'}]
list=[{\'key\':\'A\'},{\'key\':\'B\'},{\'key\':\'C\'}]
How can I get the last ob
In my case I find this solution: {{object_list.last.id}} very useful on expression like this: {% url 'my-url' object_list.first.id object_list.last.id %}
{{object_list.last.id}}
{% url 'my-url' object_list.first.id object_list.last.id %}