Ticket #20423: number_templating.diff
File number_templating.diff, 515 bytes (added by , 12 years ago) |
---|
-
django/template/base.py
diff --git a/django/template/base.py b/django/template/base.py index c5bddaf..6e3f582 100644
a b class Variable(object): 703 703 # dot or an "e" then it was a float, not an int. 704 704 if '.' not in var and 'e' not in var.lower(): 705 705 self.literal = int(self.literal) 706 self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR)) 706 707 707 708 # "2." is invalid 708 709 if var.endswith('.'):