diff --git a/docs/api/button.md b/docs/api/button.md index fa85ab3..519fa15 100644 --- a/docs/api/button.md +++ b/docs/api/button.md @@ -106,7 +106,7 @@ Buttons with custom permission, one for `change_list` and other for `change_form @button(permission='app.delete_mymodel) def mark(self, request, pk): - obj = self.get_object(request.pk) + obj = self.get_object(request, pk) obj.mark = True obj.save()