mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 03:50:11 +03:00
Add unit test for d4c8f2db
This commit is contained in:
parent
d4c8f2db0e
commit
a099cab010
|
@ -84,6 +84,7 @@ class TestMetadata:
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
nested_field = NestedField()
|
nested_field = NestedField()
|
||||||
|
uuid_field = serializers.UUIDField(label="UUID field")
|
||||||
|
|
||||||
class ExampleView(views.APIView):
|
class ExampleView(views.APIView):
|
||||||
"""Example view."""
|
"""Example view."""
|
||||||
|
@ -172,7 +173,13 @@ class TestMetadata:
|
||||||
'label': 'B'
|
'label': 'B'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
'uuid_field': {
|
||||||
|
"type": "string",
|
||||||
|
"required": True,
|
||||||
|
"read_only": False,
|
||||||
|
"label": "UUID field",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user