Add missing pk keyword argument to the detail_route.

This commit is contained in:
Xavier Ordoquy 2017-05-03 02:19:30 +02:00
parent 60dbe72a62
commit a1e6d83533

View File

@ -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.