Commit a68f473d by Tom Christie

Brackets not required on decorator without arguments

parent 8b0d4115
......@@ -108,7 +108,7 @@ For example:
queryset = User.objects.all()
serializer_class = UserSerializer
@action()
@action
def set_password(self, request, pk=None):
user = self.get_object()
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