django-rest-framework/rest_framework/utils
Varun Chawla 34065b70e7 Fix DictField returning empty dict instead of empty for missing HTML input (#6234)
When using DictField with HTML form (multipart/form-data) input,
parse_html_dict always returned an empty MultiValueDict when no
matching keys were found. This made it impossible to distinguish
between an unspecified field and an empty input, causing issues
with required/default field handling.

This aligns parse_html_dict with parse_html_list by adding a
default parameter that is returned when no matching keys are found.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 15:05:58 -08:00
..
__init__.py XML cleanup 2013-02-22 19:46:47 +00:00
breadcrumbs.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
encoders.py Add support for ipaddress objects in JSONEncoder (#9087) 2025-10-30 16:27:20 +06:00
field_mapping.py Add pyupgrade to pre-commit hooks (#9682) 2025-04-09 06:24:18 +00:00
formatting.py replace force_text with force_str 2019-08-07 21:05:24 +02:00
html.py Fix DictField returning empty dict instead of empty for missing HTML input (#6234) 2026-02-08 15:05:58 -08:00
humanize_datetime.py Change ISO 8601 date format to exclude year/month (#5936) 2018-04-14 05:23:31 +01:00
json.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
mediatypes.py Remove unused code 2024-04-30 18:28:22 +02:00
model_meta.py Fix type name of FieldInfo namedtuple (#9124) 2023-10-04 23:03:10 +06:00
representation.py fix: Remove the _delegate_text attribute, which is being removed in django 5.0 (#9278) 2024-03-08 13:14:27 +00:00
serializer_helpers.py Cleanup dependencies and conditions for unsupported Python versions (#9681) 2025-04-08 08:29:40 +00:00
timezone.py Use ZoneInfo as primary source of timezone data (#8924) 2023-04-08 15:16:00 +06:00
urls.py Remove unnecessary type conversions (#7526) 2020-09-08 15:42:01 +01:00