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.
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.