From 7957b8137821c39fc3b543d1ae7037006563135b Mon Sep 17 00:00:00 2001 From: Q_back Date: Fri, 6 Mar 2020 17:42:29 +0100 Subject: [PATCH] Update fields.md If I specify `blank=True` in my Model's field, then this field is not required in `ModelSerializer`. BTW it's confusing since (as far as I know) `blank=True` has no effect on e.g. `ManyToManyField`, but when I'm using DRF then I have a reason to use `blank=True` on this field. --- docs/api-guide/fields.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 65c83b78e..5993ddf65 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -27,7 +27,7 @@ Read-only fields are included in the API output, but should not be included in t Set this to `True` to ensure that the field is used when serializing a representation, but is not used when creating or updating an instance during deserialization. -Defaults to `False` +Defaults to `False`. If you're using [Model Serializer](https://www.django-rest-framework.org/api-guide/serializers/#modelserializer) default value will be `False` if you have specified `blank=True` at this field. ### `write_only`