Skip to content

Commit

Permalink
Add missing pk keyword argument to the detail_route.
Browse files Browse the repository at this point in the history
  • Loading branch information
xordoquy committed May 3, 2017
1 parent 60dbe72 commit a1e6d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/routers.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Let's take a look at the routes our `CustomReadOnlyRouter` would generate for a
lookup_field = 'username'

@detail_route()
def group_names(self, request):
def group_names(self, request, pk=None):
"""
Returns a list of all the group names that the given
user belongs to.
Expand Down

0 comments on commit a1e6d83

Please sign in to comment.