Ticket #3670: templateif_patch.patch

File templateif_patch.patch, 436 bytes (added by bram.dejong+django@…, 18 years ago)
  • __init__.py

     
    632632
    633633    (The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.')
    634634    """
    635     if path[0].isdigit():
     635    if path[0].isdigit() or path[0] == "-":
    636636        number_type = '.' in path and float or int
    637637        try:
    638638            current = number_type(path)
Back to Top