Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix action support for ViewSet suffixes #6081

Merged
merged 4 commits into from Oct 2, 2018

Conversation

rpkilby
Copy link
Member

@rpkilby rpkilby commented Jul 10, 2018

Followup to #5605, fixing action support for ViewSet suffixes. This supersedes #6079.

Removing the name attribute isn't an issue, since it hasn't been released as part of the public API.

TODO:

  • Add renderer tests
  • Add decorator tests
  • Fix docs?

cc @blueyed

@rpkilby rpkilby added this to the 3.9 Release milestone Jul 10, 2018
@rpkilby rpkilby changed the title Action suffix Fix action support for ViewSet suffixes Jul 10, 2018
@codecov-io
Copy link

codecov-io commented Jul 10, 2018

Codecov Report

Merging #6081 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@rpkilby
Copy link
Member Author

rpkilby commented Sep 13, 2018

This is ready for review now. No functional changes since the initial PR - just added tests and made minor docs adjustments.

cc @blueyed @carltongibson

@rpkilby
Copy link
Member Author

rpkilby commented Sep 13, 2018

Thanks again to @blueyed for raising the issue!

@carltongibson
Copy link
Collaborator

carltongibson commented Sep 13, 2018

Good work @rpkilby. Thanks for all your effort. I will take a look next week, or so.

Ryan P Kilby and others added 4 commits October 2, 2018 16:04
Removes the newly introduced `action.name` in favor of leveraging the
View's `.get_view_name()` method, which supports both name and suffix.
@carltongibson carltongibson merged commit 903204c into encode:master Oct 2, 2018
@rpkilby rpkilby deleted the action-suffix branch October 2, 2018 15:39
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
* Add suffix support for actions

Removes the newly introduced `action.name` in favor of leveraging the
View's `.get_view_name()` method, which supports both name and suffix.

* Fix view description func docstrings

* Test action decorator name & suffix kwargs

* Adjust 'extra action' docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants