Opened 7 years ago

Closed 6 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: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Chris Beaven

Attachment: 13475.diff added

comment:1 Changed 7 years ago by Chris Beaven

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

Patch with test

comment:2 Changed 6 years ago by Luke Plant

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