diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-09-01 02:22:46 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-09-01 02:22:46 +0000 |
| commit | 887f6331d43c1b4c3cfbc1dc492dad7c04f99bf9 (patch) | |
| tree | 506d56570cf3217c2bacf253e9db6114885a8cd3 | |
| parent | 2577581808fc691e0114ce460efd28a9b9e1c1ff (diff) | |
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
| -rw-r--r-- | django/core/defaultfilters.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
