Ticket #3022: resolve_variable-negatives.patch
File resolve_variable-negatives.patch, 518 bytes (added by , 18 years ago) |
---|
-
django/template/__init__.py
624 624 625 625 (The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.') 626 626 """ 627 if path[0].isdigit() :627 if path[0].isdigit() or (len(path) > 1 and path[0] == '-' and path[1].isdigit()): 628 628 number_type = '.' in path and float or int 629 629 try: 630 630 current = number_type(path)