Ticket #1110: defaultFiltersWrap.diff

File defaultFiltersWrap.diff, 446 bytes (added by scum, 19 years ago)

converted value to string before getting wrapped

  • core/template/defaultfilters.py

     
    135135    Argument: number of words to wrap the text at.
    136136    """
    137137    from django.utils.text import wrap
    138     return wrap(value, int(arg))
     138    return wrap(str(value), int(arg))
    139139
    140140def ljust(value, arg):
    141141    """
Back to Top