Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1110 closed defect (fixed)

[patch] Silence wordwrap filter when receiving non-strings

Reported by: scum Owned by: Adrian Holovaty
Component: Template system Version:
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This makes the wordwrap filter silent upon receiving a non-string type. If one is iterating though a word-wrapped list ["Some Street", "Some City", 90210], django currently throws an error.

Attachments (1)

defaultFiltersWrap.diff (446 bytes ) - added by scum 19 years ago.
converted value to string before getting wrapped

Download all attachments as: .zip

Change History (3)

by scum, 19 years ago

Attachment: defaultFiltersWrap.diff added

converted value to string before getting wrapped

comment:1 by anonymous, 19 years ago

Summary: Silence wordwrap filter when receiving non-strings[patch] Silence wordwrap filter when receiving non-strings

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [1882]) Fixed #1110 -- wordwrap template filter now calls str() on input. Thanks, scum

Note: See TracTickets for help on using tickets.
Back to Top