Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 374 Bytes

filter_tail.rst

File metadata and controls

15 lines (9 loc) · 374 Bytes

django

Fetch the tail of a list.

Returns the tail of a list. Useful when you want to skip the first element of a list when looping.

For example:

{% for a in value|tail %}{{ a|format_number }}{% endfor %}

When value is the list [1,2,3] then the output is 23.

filter-first, filter-nthtail