Fixed a typo on the ExampleValidatedAPIView

Cherry-picked from #6819
This commit is contained in:
Daniel Alvarez 2019-07-20 21:54:36 +02:00 committed by Carlton Gibson
parent 1b66d1b819
commit 659375ffe6
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ class TestOperationIntrospection(TestCase):
path = '/' path = '/'
method = 'GET' method = 'GET'
view = create_view( view = create_view(
views.ExampleValdidatedAPIView, views.ExampleValidatedAPIView,
method, method,
create_request(path), create_request(path),
) )

View File

@ -96,7 +96,7 @@ class ExampleValidatedSerializer(serializers.Serializer):
ip = serializers.IPAddressField() ip = serializers.IPAddressField()
class ExampleValdidatedAPIView(generics.GenericAPIView): class ExampleValidatedAPIView(generics.GenericAPIView):
serializer_class = ExampleValidatedSerializer serializer_class = ExampleValidatedSerializer
def get(self, *args, **kwargs): def get(self, *args, **kwargs):