Loading AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -473,6 +473,7 @@ answer newbie questions, and generally made Django that much better: Leo Soto <leo.soto@gmail.com> Wiliam Alves de Souza <wiliamsouza83@gmail.com> Don Spaulding <donspauldingii@gmail.com> Calvin Spealman <ironfroggy@gmail.com> Bjørn Stabell <bjorn@exoweb.net> Georgi Stanojevski <glisha@gmail.com> starrynight <cmorgh@gmail.com> Loading docs/ref/templates/builtins.txt +3 −1 Original line number Diff line number Diff line Loading @@ -2285,7 +2285,8 @@ If ``value`` is ``Joel is a slug``, the output would be:: yesno ^^^^^ Given a string mapping values for true, false and (optionally) None, Maps values for true, false and (optionally) None, to the strings "yes", "no", "maybe", or a custom mapping passed as a comma-separated list, and returns one of those strings according to the value: For example:: Loading @@ -2295,6 +2296,7 @@ For example:: ========== ====================== ================================== Value Argument Outputs ========== ====================== ================================== ``True`` ``yes`` ``True`` ``"yeah,no,maybe"`` ``yeah`` ``False`` ``"yeah,no,maybe"`` ``no`` ``None`` ``"yeah,no,maybe"`` ``maybe`` Loading Loading
AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -473,6 +473,7 @@ answer newbie questions, and generally made Django that much better: Leo Soto <leo.soto@gmail.com> Wiliam Alves de Souza <wiliamsouza83@gmail.com> Don Spaulding <donspauldingii@gmail.com> Calvin Spealman <ironfroggy@gmail.com> Bjørn Stabell <bjorn@exoweb.net> Georgi Stanojevski <glisha@gmail.com> starrynight <cmorgh@gmail.com> Loading
docs/ref/templates/builtins.txt +3 −1 Original line number Diff line number Diff line Loading @@ -2285,7 +2285,8 @@ If ``value`` is ``Joel is a slug``, the output would be:: yesno ^^^^^ Given a string mapping values for true, false and (optionally) None, Maps values for true, false and (optionally) None, to the strings "yes", "no", "maybe", or a custom mapping passed as a comma-separated list, and returns one of those strings according to the value: For example:: Loading @@ -2295,6 +2296,7 @@ For example:: ========== ====================== ================================== Value Argument Outputs ========== ====================== ================================== ``True`` ``yes`` ``True`` ``"yeah,no,maybe"`` ``yeah`` ``False`` ``"yeah,no,maybe"`` ``no`` ``None`` ``"yeah,no,maybe"`` ``maybe`` Loading