mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-05 16:33:44 +03:00
Add missing pk keyword argument to the detail_route.
This commit is contained in:
parent
60dbe72a62
commit
a1e6d83533
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user