Skip to content

Commit 9b80057

Browse files
auvipybrowniebroke
andauthored
Update rest_framework/utils/html.py
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
1 parent fdfc4fb commit 9b80057

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rest_framework/utils/html.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,8 @@ def parse_html_dict(dictionary, prefix='', default=NOT_PROVIDED):
9898
value = dictionary.getlist(field)
9999
ret.setlist(key, value)
100100

101+
# Left for backwards compatibility in case of external caller
102+
if default is NOT_PROVIDED:
103+
return ret
104+
101105
return ret if ret else default

0 commit comments

Comments
 (0)