mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-16 19:41:06 +03:00
parent
1b66d1b819
commit
659375ffe6
|
@ -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),
|
||||||
)
|
)
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user