From dbc4adeedab14039ea739ecf9072303c08a83c7a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 31 Aug 2005 16:47:06 +0000 Subject: [PATCH] Fixed #385 -- Fixed bug in yesno template filter. Thanks, eugene@lazutkin.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@582 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/defaultfilters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/defaultfilters.py b/django/core/defaultfilters.py index f0e743500a..0b223bcee4 100644 --- a/django/core/defaultfilters.py +++ b/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: