Django

Code

Changeset 582

Show
Ignore:
Timestamp:
08/31/05 11:47:06 (3 years ago)
Author:
adrian
Message:

Fixed #385 -- Fixed bug in yesno template filter. Thanks, eugene@lazutkin.com

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/defaultfilters.py

    r581 r582  
    369369        yes, no, maybe = bits 
    370370    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] 
    372372    if value is None: 
    373373        return maybe