Opened 5 years ago

Closed 4 years ago

#13475 closed (fixed)

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

Reported by: SmileyChris Owned by: SmileyChris
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 SmileyChris 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by SmileyChris

comment:1 Changed 5 years ago by SmileyChris

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to SmileyChris
  • Patch needs improvement unset
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Ready for checkin

Patch with test

comment:2 Changed 4 years ago by lukeplant

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

(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