Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Multi-level dictionaries not supported in multipart requests #3314

Closed
@nazarewk

Description

@nazarewk

rest_framework.utils.html.is_html_input() combined withrest_framework.utils.html.parse_html_dict() does not detect 3+ level dictionaries, for example.

  1. Multipart representation of{'a':{'b':{'c':123}}} isQueryDict([('a.b.c',123)]), sois_html_input() properly detects nested dictionary.
  2. On the second pass there is{'b.c':123} andis_html_input() does not detect the nested dictionary.

My suggestion is to either instantiate or returnMultiValueDict instead of simpledict inparse_html_dict() (and possiblyparse_html_list())
https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/utils/html.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp