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

[change] using safer calling way of "@api_view" in docs/tutorial/5-relationships-and-hyperlinked-apis.md#3971

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
xordoquy merged 2 commits intoencode:masterfromlynndotconfig:master
Mar 1, 2016

Conversation

@lynndotconfig
Copy link
Contributor

Description

to fix "@api_view" usage error in "docs/tutorial/5-relationships-and-hyperlinked-apis.md"

"@api_view" usage error.
@xordoquy
Copy link
Contributor

I don't really see what it fixes. Both tuple and lists should be valid.

@lynndotconfig
Copy link
ContributorAuthor

If it was only passed by "GET", list is safer then tuple and also can skip the comma.

@xordoquy
Copy link
Contributor

ok, so it's not a fix in itself, just a change to make it safer for Python newcomers.



@api_view(('GET',))
@api_view(['GET',])
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove the coma here to avoid confusion with tuples ?

remove comma
@lynndotconfiglynndotconfig changed the title[FIX] "@api_view" calling error in docs/tutorial/5-relationships-and-hyperlinked-apis.md[change] using safer calling way of "@api_view" in docs/tutorial/5-relationships-and-hyperlinked-apis.mdMar 1, 2016
@lynndotconfig
Copy link
ContributorAuthor

Yes, for Python newcomers.

@xordoquyxordoquy added this to the3.4.0 Release milestoneMar 1, 2016
xordoquy added a commit that referenced this pull requestMar 1, 2016
[change] using safer calling way of  "@api_view" in docs/tutorial/5-relationships-and-hyperlinked-apis.md
@xordoquyxordoquy merged commitc2cfb84 intoencode:masterMar 1, 2016
@xordoquy
Copy link
Contributor

Thanks !

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.4.0 Release

Development

Successfully merging this pull request may close these issues.

2 participants

@lynndotconfig@xordoquy

[8]ページ先頭

©2009-2025 Movatter.jp