Navigation Menu

Skip to content

Commit

Permalink
docs: fix ActionEndpoint.action method example
Browse files Browse the repository at this point in the history
  • Loading branch information
senko committed Dec 15, 2013
1 parent 4fdf409 commit 0a35d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -266,7 +266,7 @@ borrowed by the current user::
model = Book

@login_required
def action(self, obj, *args, **kwargs):
def action(self, request, obj, *args, **kwargs):
obj.borrowed_by = request.user
obj.save()
return serialize(obj)
Expand Down

0 comments on commit 0a35d69

Please sign in to comment.