diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-31 16:47:06 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-31 16:47:06 +0000 |
| commit | dbc4adeedab14039ea739ecf9072303c08a83c7a (patch) | |
| tree | 8800951ceb152630ac41eec3cfb8befc0cab1b5c | |
| parent | 9635ac07a5ee9a1ff54ebcfb08b48622356b0326 (diff) | |
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
| -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 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: |
