Ticket #16510: 16510.diff

File 16510.diff, 755 bytes (added by timdumol, 13 years ago)

Fixes the mentioned issues.

  • django/template/defaultfilters.py

     
    254254        length = int(arg)
    255255    except ValueError: # Invalid literal for int().
    256256        return value # Fail silently.
    257     return Truncator(value).chars(value, length)
     257    return Truncator(value).chars(length)
    258258truncatechars.is_safe = True
    259259truncatechars = stringfilter(truncatechars)
    260260
     
    922922register.filter(striptags)
    923923register.filter(time)
    924924register.filter(title)
     925register.filter(truncatechars)
    925926register.filter(truncatewords)
    926927register.filter(truncatewords_html)
    927928register.filter(unordered_list)
Back to Top