Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #385 -- Fixed bug in yesno template filter. Thanks, eugene@lazu…

…tkin.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dbc4adeedab14039ea739ecf9072303c08a83c7a 1 parent 9635ac0
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/defaultfilters.py
View
2  django/core/defaultfilters.py
@@ -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]
+ yes, no, maybe = bits, bits[1], bits[1]
if value is None:
return maybe
if value:
Please sign in to comment.
Something went wrong with that request. Please try again.