Ticket #8966: 8966_naive_fix.diff
File 8966_naive_fix.diff, 471 bytes (added by , 16 years ago) |
---|
-
django/template/defaultfilters.py
476 476 def length_is(value, arg): 477 477 """Returns a boolean of whether the value's length is the argument.""" 478 478 return len(value) == int(arg) 479 length_is.is_safe = True480 479 481 480 def random(value): 482 481 """Returns a random item from the list."""