Ticket #8966: 8966_naive_fix.diff

File 8966_naive_fix.diff, 471 bytes (added by Carl Meyer, 16 years ago)

simple fix (remove is_safe from length_is filter)

  • django/template/defaultfilters.py

     
    476476def length_is(value, arg):
    477477    """Returns a boolean of whether the value's length is the argument."""
    478478    return len(value) == int(arg)
    479 length_is.is_safe = True
    480479
    481480def random(value):
    482481    """Returns a random item from the list."""
Back to Top