Skip to content
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2577581 commit 887f6331d43c1b4c3cfbc1dc492dad7c04f99bf9 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/
2 django/core/
@@ -368,7 +368,7 @@ def yesno(value, arg):
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:

0 comments on commit 887f633

Please sign in to comment.
Something went wrong with that request. Please try again.