Ticket #5025: 5025.3.diff

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

To be applied on top of 5025.2.diff. Fixes the issues mentioned below.

  • 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