Opened 15 years ago

Closed 14 years ago

#13475 closed (fixed)

for tag raises an exception when trying to unpack a non-iterable item

Reported by: Chris Beaven Owned by: Chris Beaven
Component: Template system Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Example:

from django import template
template.Template('{% for x, y in p %}.{% endfor %}').render(template.Context({'p': [1]}))

Attachments (1)

13475.diff (2.7 KB ) - added by Chris Beaven 15 years ago.

Download all attachments as: .zip

Change History (3)

by Chris Beaven, 15 years ago

Attachment: 13475.diff added

comment:1 by Chris Beaven, 15 years ago

Has patch: set
Owner: changed from nobody to Chris Beaven
Status: newassigned
Triage Stage: UnreviewedReady for checkin

Patch with test

comment:2 by Luke Plant, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [13690]) Fixed #13475 - for tag raises an exception when trying to unpack a non-iterable item

Thanks to SmileyChris for the report and patch.

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