﻿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
385	[patch] yesno filter is broken: doesn't accept 2-value argument	eugene@…	Adrian Holovaty	"'''yesno''' filter throws exception, when it is used with 2-value argument:
{{{
{{ mylist|length_is:""1""|yesno:""datum,data"" }}
}}}

This path works for me:

{{{
--- C:\Documents and Settings\Eugene\Local Settings\Temp\defaultfilters-HEAD.py	Sun Aug 21 08:34:15 2005
+++ c:\Projects\Django\django\core\defaultfilters.py	Sun Aug 21 08:27:28 2005
@@ -367,7 +367,7 @@
     try:
         yes, no, maybe = bits
     except ValueError: # unpack list of wrong size (no ""maybe"" value provided)
-        yes, no, maybe = bits, bits[1]
+        yes, no, maybe = bits[0], bits[1], bits[1]
     if value is None:
         return maybe
     if value:
}}}

PS: Is there any simple way to pluralize non-regular nouns? Something like this would be nice to have:
{{{
{{ mylist|pluralize:""datum,data"" }}
}}}
"	defect	closed	Template system		major	fixed			Unreviewed	1	0	0	0	0	0
