Brackets not required on decorator without arguments

This commit is contained in:
Tom Christie 2013-06-21 23:25:14 +02:00
parent 8b0d4115c6
commit a68f473dd8

View File

@ -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)