Skip to content

Commit 72fbefd

Browse files
committed
Merge branch 'master' of github.com:encode/django-rest-framework into 6836
2 parents c50847c + bcf196d commit 72fbefd

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)