Skip to content

Commit bcf196d

Browse files
authored
Remove outdated note about read_only+default (encode#6847)
1 parent 0e1c5d3 commit bcf196d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/api-guide/validators.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ If you want the date field to be visible, but not editable by the user, then set
152152

153153
published = serializers.DateTimeField(read_only=True, default=timezone.now)
154154

155-
The field will not be writable to the user, but the default value will still be passed through to the `validated_data`.
156-
157155
#### Using with a hidden date field.
158156

159157
If you want the date field to be entirely hidden from the user, then use `HiddenField`. This field type does not accept user input, but instead always returns its default value to the `validated_data` in the serializer.

0 commit comments

Comments
 (0)