Skip to content

Commit

Permalink
Merge pull request #18 from MicahLyle/patch-1
Browse files Browse the repository at this point in the history
Update button documentation example to call `get_object` correctly
  • Loading branch information
saxix authored Jan 22, 2024
2 parents 9b6b5da + 6ba9eb5 commit 055b1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 055b1ab

Please sign in to comment.