Ticket #2303: templatebools.diff

File templatebools.diff, 528 bytes (added by anonymous, 18 years ago)

Patch

  • django/template/__init__.py

     
    615615    (The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.')
    616616    """
    617617    if path == 'False':
    618         path = False
     618        current = False
    619619    elif path == 'True':
    620         path = True
     620        current = True
    621621    elif path[0].isdigit():
    622622        number_type = '.' in path and float or int
    623623        try:
Back to Top