mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-10 23:34:46 +03:00
Corrected super() argument
This commit is contained in:
parent
0781182646
commit
a14488d8eb
|
@ -41,7 +41,7 @@ class ExampleViewSet(ModelViewSet):
|
||||||
|
|
||||||
@detail_route(methods=['post'], serializer_class=AnotherSerializer)
|
@detail_route(methods=['post'], serializer_class=AnotherSerializer)
|
||||||
def custom_action(self, request, pk):
|
def custom_action(self, request, pk):
|
||||||
return super(ExampleSerializer, self).retrieve(self, request)
|
return super(ExampleViewSet, self).retrieve(self, request)
|
||||||
|
|
||||||
|
|
||||||
class ExampleView(APIView):
|
class ExampleView(APIView):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user