Commit f3529f1f by Philip Douglas

Correct docs' incorrect usage of action decorator

If you don't call it, it doesn't work.
parent 6d2ca75d
...@@ -108,7 +108,7 @@ For example: ...@@ -108,7 +108,7 @@ For example:
queryset = User.objects.all() queryset = User.objects.all()
serializer_class = UserSerializer serializer_class = UserSerializer
@action @action()
def set_password(self, request, pk=None): def set_password(self, request, pk=None):
user = self.get_object() user = self.get_object()
serializer = PasswordSerializer(data=request.DATA) serializer = PasswordSerializer(data=request.DATA)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment