Fixed #446 -- Fixed bug in yesno template filter. Thanks, Hugo

git-svn-id: http://code.djangoproject.com/svn/django/trunk@589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-09-01 02:22:46 +00:00
parent 2577581808
commit 887f6331d4
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ def yesno(value, arg):
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, maybe = bits[0], bits[1], bits[1]
if value is None:
return maybe
if value: