Ticket #2303: templatebools.diff
File templatebools.diff, 528 bytes (added by , 18 years ago) |
---|
-
django/template/__init__.py
615 615 (The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.') 616 616 """ 617 617 if path == 'False': 618 path= False618 current = False 619 619 elif path == 'True': 620 path= True620 current = True 621 621 elif path[0].isdigit(): 622 622 number_type = '.' in path and float or int 623 623 try: