Code

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#1110 closed defect (fixed)

[patch] Silence wordwrap filter when receiving non-strings

Reported by: scum Owned by: adrian
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 9 years ago.
converted value to string before getting wrapped

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by scum

converted value to string before getting wrapped

comment:1 Changed 9 years ago by anonymous

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

comment:2 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.