default
Provide an alternative value in case a value has a falsy value (0, false, undefined or empty string).
For example:
{{ value|default:1 }}
This filter is built-in in the template compiler and inlined when compiling templates.
See also
Provide an alternative value in case a value has a falsy value (0, false, undefined or empty string).
For example:
{{ value|default:1 }}
This filter is built-in in the template compiler and inlined when compiling templates.
See also
Filters transform template variables before they are rendered.