mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Merge c3e89082f4
into efff9ff338
This commit is contained in:
commit
e2294e8844
|
@ -1562,7 +1562,9 @@ class ListField(Field):
|
|||
# We override the default field access in order to support
|
||||
# lists in HTML forms.
|
||||
if html.is_html_input(dictionary):
|
||||
val = dictionary.getlist(self.field_name, [])
|
||||
val = dictionary.getlist(self.field_name, empty)
|
||||
if val == empty:
|
||||
return val
|
||||
if len(val) > 0:
|
||||
# Support QueryDict lists in HTML input.
|
||||
return val
|
||||
|
|
Loading…
Reference in New Issue
Block a user