Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored August 31, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/defaultfilters.py
2  django/core/defaultfilters.py
@@ -368,7 +368,7 @@ def yesno(value, arg):
368 368
     try:
369 369
         yes, no, maybe = bits
370 370
     except ValueError: # unpack list of wrong size (no "maybe" value provided)
371  
-        yes, no, maybe = bits, bits[1]
  371
+        yes, no, maybe = bits, bits[1], bits[1]
372 372
     if value is None:
373 373
         return maybe
374 374
     if value:

0 notes on commit dbc4ade

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