Django

Code

Ticket #1110 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

[patch] Silence wordwrap filter when receiving non-strings

Reported by: scum Assigned to: adrian
Milestone: Component: Template system
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

defaultFiltersWrap.diff (446 bytes) - added by scum on 12/23/05 12:17:17.
converted value to string before getting wrapped

Change History

12/23/05 12:17:17 changed by scum

  • attachment defaultFiltersWrap.diff added.

converted value to string before getting wrapped

12/23/05 12:18:25 changed by anonymous

  • summary changed from Silence wordwrap filter when receiving non-strings to [patch] Silence wordwrap filter when receiving non-strings.

01/08/06 20:08:30 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #1110 ([patch] Silence wordwrap filter when receiving non-strings)




Change Properties
Action