Opened 18 years ago
Closed 18 years ago
#4270 closed (fixed)
immutable QueryDict allows deletion of keys
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | 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
>>> from django.http import QueryDict >>> q=QueryDict('vote') >>> q <MultiValueDict: {'vote': ['']}> >>> del q['vote'] >>> q <MultiValueDict: {}>
Attachments (1)
Change History (4)
by , 18 years ago
comment:1 by , 18 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 18 years ago
Nice catch, Gary. These little tidying-up patches you've been posting are very useful. Thanks.
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Added
__delitem__
toQueryDict
that checks if mutable. Tests too.