Logic Filters
4 filters
-
default
used to provide a default string when the variable evaluates to
False. Most useful -
default_if_none
outputs
defaultif and only if the value isNone. -
length_is
Deprecated. Use
lengthwith comparison instead. Removed in Django 5.1 -
yesno
maps
True,False, andNoneto mapped values. Most useful
