Opened 8 years ago

Closed 8 years ago

#27583 closed Bug (fixed)

MultiValueDict raises TypeError when values for specific key is None

Reported by: Mariusz Felisiak Owned by: Mariusz Felisiak
Component: Utilities Version: dev
Severity: Normal Keywords: MultiValueDict
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

django.utils.datastructures.MultiValueDict raises:

  File "django/utils/datastructures.py", line 149, in _getlist
    values = list(values)
TypeError: 'NoneType' object is not iterable

in getlist method when force_list is on and values for specific key is None.

Change History (4)

comment:1 by Mariusz Felisiak, 8 years ago

Summary: MultiValueDict raises TypeError whenMultiValueDict raises TypeError when values for specific key is None

comment:2 by Mariusz Felisiak, 8 years ago

Has patch: set
Keywords: MultiValueDict added

comment:3 by Tim Graham, 8 years ago

Triage Stage: UnreviewedReady for checkin

It's a regression in #27198 that only affects master.

comment:4 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 8e3a72f:

Fixed #27583 -- Fixed MultiValueDict.getlist() crash when values for key is None.

Restored the behavior before 727d7ce6cba21363470aaefb2dc5353017531be3.

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