mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-06 21:33:34 +03:00
Small documentation fix
This commit is contained in:
parent
3ab8d4706e
commit
bb133522ef
|
@ -282,7 +282,7 @@ If a nested representation may optionally accept the `None` value you should pas
|
||||||
content = serializers.CharField(max_length=200)
|
content = serializers.CharField(max_length=200)
|
||||||
created = serializers.DateTimeField()
|
created = serializers.DateTimeField()
|
||||||
|
|
||||||
Similarly if a nested representation should be a list of items, you should pass the `many=True` flag to the nested serialized.
|
Similarly if a nested representation should be a list of items, you should pass the `many=True` flag to the nested serializer.
|
||||||
|
|
||||||
class CommentSerializer(serializers.Serializer):
|
class CommentSerializer(serializers.Serializer):
|
||||||
user = UserSerializer(required=False)
|
user = UserSerializer(required=False)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user