From de92e965be290d127e0550d327c7b14f2a2e1e97 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Tue, 20 Mar 2018 20:47:09 +0100 Subject: [PATCH] Remove `read_only` from `CreateOnlyDefault` example. In this context (without mentioning `save`) now slightly misleading. --- docs/api-guide/validators.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/api-guide/validators.md b/docs/api-guide/validators.md index fe492c0a7..fd1e221bd 100644 --- a/docs/api-guide/validators.md +++ b/docs/api-guide/validators.md @@ -189,7 +189,6 @@ A default class that can be used to *only set a default argument during create o It takes a single argument, which is the default value or callable that should be used during create operations. created_at = serializers.DateTimeField( - read_only=True, default=serializers.CreateOnlyDefault(timezone.now) )