Commit a1e6d835 by Xavier Ordoquy

Add missing pk keyword argument to the detail_route.

parent 60dbe72a
...@@ -270,7 +270,7 @@ Let's take a look at the routes our `CustomReadOnlyRouter` would generate for a ...@@ -270,7 +270,7 @@ Let's take a look at the routes our `CustomReadOnlyRouter` would generate for a
lookup_field = 'username' lookup_field = 'username'
@detail_route() @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 Returns a list of all the group names that the given
user belongs to. user belongs to.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment