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

Add allow_null serialization output note#5641

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

From#5639, although I'm indifferent to its inclusion.

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.

Thanks@rpkilby.

I'm basically +1 here, since there's always a degree of confusion as to how these flags interact.

Bottom line is (I guess) it's just complicated but until such a time as we can re-work things/docs to be clearer more detail is better.

@carltongibsoncarltongibson added this to thev3.7.4 milestoneDec 1, 2017
@carltongibsoncarltongibson merged commit5f42cb7 intoencode:masterDec 1, 2017
@rpkilbyrpkilby deleted the allow-null-default-docs branchDecember 1, 2017 09:11

Normally an error will be raised if`None` is passed to a serializer field. Set this keyword argument to`True` if`None` should be considered a valid value.

Note that setting this argument to`True` will imply a default value of`null` for serialization output, but does imply a default for input deserialization.

Choose a reason for hiding this comment

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

Hi,

shouldn't this:

but does imply a default for input deserialization.

be instead:

but does not imply a default for input deserialization.

Sorry for the noise if I'm wrong :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yep - that's definitely a typo.

callmesangio reacted with thumbs up emoji
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

+1 more reviewer

@callmesangiocallmesangiocallmesangio left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.7.4 Release

Development

Successfully merging this pull request may close these issues.

3 participants

@rpkilby@carltongibson@callmesangio

[8]ページ先頭

©2009-2025 Movatter.jp