Opened 11 years ago

Closed 11 years ago

Last modified 10 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: UI/UX:

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 11 years ago.
converted value to string before getting wrapped

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by scum

Attachment: defaultFiltersWrap.diff added

converted value to string before getting wrapped

comment:1 Changed 11 years ago by anonymous

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

comment:2 Changed 11 years ago by Adrian Holovaty

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