mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
parent
1b66d1b819
commit
659375ffe6
|
@ -225,7 +225,7 @@ class TestOperationIntrospection(TestCase):
|
|||
path = '/'
|
||||
method = 'GET'
|
||||
view = create_view(
|
||||
views.ExampleValdidatedAPIView,
|
||||
views.ExampleValidatedAPIView,
|
||||
method,
|
||||
create_request(path),
|
||||
)
|
||||
|
|
|
@ -96,7 +96,7 @@ class ExampleValidatedSerializer(serializers.Serializer):
|
|||
ip = serializers.IPAddressField()
|
||||
|
||||
|
||||
class ExampleValdidatedAPIView(generics.GenericAPIView):
|
||||
class ExampleValidatedAPIView(generics.GenericAPIView):
|
||||
serializer_class = ExampleValidatedSerializer
|
||||
|
||||
def get(self, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue
Block a user