Remove read_only from CreateOnlyDefault example.

In this context (without mentioning `save`) now slightly misleading.
This commit is contained in:
Carlton Gibson 2018-03-20 20:47:09 +01:00
parent d64e88e467
commit de92e965be

View File

@ -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)
)