Learn Before
Concept
Filters in DTL
Filters may be used in DTL to manipulate variables for display. These are accessed by using a pipe ( | ). For example, to display a variable called "country" in all lowercase, you could do the following:
{{ country|lower }}
Filters can be chained together, like so:
{{ summary|truncatewords:15|lower }}
0
1
Updated 2021-03-12
Tags
Python Programming Language
Data Science