﻿id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 446 [patch] bug in yesno filter prevents usage of 2-value form hugo adrian "When using the yesno filter with only 2 values, it does the decomposition wrong and will set yes to a list instead of a value. this patch fixes that: {{{ #!python Index: defaultfilters.py =================================================================== --- defaultfilters.py (revision 585) +++ defaultfilters.py (working copy) @@ -368,7 +368,8 @@ try: yes, no, maybe = bits except ValueError: # unpack list of wrong size (no ""maybe"" value provided) - yes, no, maybe = bits, bits[1], bits[1] + yes, no = bits + maybe = no if value is None: return maybe if value: }}} " defect closed contrib.admin normal fixed Unreviewed 1 0 0 0