From 887f6331d43c1b4c3cfbc1dc492dad7c04f99bf9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 1 Sep 2005 02:22:46 +0000 Subject: [PATCH] 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 --- 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 0b223bcee4..ff55219f0b 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], bits[1] + yes, no, maybe = bits[0], bits[1], bits[1] if value is None: return maybe if value: