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

Disable HTML inputs for dict/list fields#5702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@rpkilby
Copy link
Contributor

ListField &DictField do not seem to have proper HTML form support. Until they do, it would make sense to render a disabled form input, similar to how nested list serializers are currently handled.

Is there any reason not to disable these inputs?

Additionally, I would add tests for this, but I don't see any relevant tests for serializer form rendering.

@rpkilbyrpkilby added this to the3.8 Release milestoneDec 22, 2017
Copy link
Collaborator

@carltongibsoncarltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Given current limitations, I agree that disabling these fields is the best approach.

Thesolution here is for users to provide their own templates adding whatever widgets are needed for their use-case. That's out of scope for core as of now. (Would make some good blog posts though.)

@carltongibsoncarltongibson merged commitb7ed645 intoencode:masterJan 2, 2018
@rpkilbyrpkilby deleted the disable-composite-inputs branchJanuary 3, 2018 22:53
@rpkilbyrpkilby mentioned this pull requestJan 2, 2019
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull requestNov 17, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@carltongibsoncarltongibsoncarltongibson approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.8.0 Release

Development

Successfully merging this pull request may close these issues.

2 participants

@rpkilby@carltongibson

[8]ページ先頭

©2009-2025 Movatter.jp