Skip to content

Creating viewset actions on the fly #9008

Discussion options

You must be logged in to vote

Hello there!
DRF provides some general actions itself to prevent you from doing certain things in your APIView. By using the action decorator, you can add a new custom action to your viewset, which requires specifying its complete functionality. However, in this case, you are only performing a partial_update on your user, which can be accomplished without adding a new action.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by auvipy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9001 on June 13, 2023 04:10.