From 760da25c6018eff02b3aab33dc6fea7c93881d9f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 17 Dec 2014 16:23:42 +0000 Subject: Update documentation --- api-guide/serializers/index.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'api-guide/serializers/index.html') diff --git a/api-guide/serializers/index.html b/api-guide/serializers/index.html index 71da4a99..54888896 100644 --- a/api-guide/serializers/index.html +++ b/api-guide/serializers/index.html @@ -369,6 +369,10 @@ Validation +
For more information see the validators documentation.
+When passing an initial object or queryset to a serializer instance, the object will be made available as .instance. If no initial object is passed then the .instance attribute will be None.
When passing data to a serializer instance, the unmodified data will be made available as .initial_data. If the data keyword argument is not passed then the .initial_data attribute will not exist.
By default, serializers must be passed values for all required fields or they will raise validation errors. You can use the partial argument in order to allow partial updates.
# Update `comment` with partial data
--
cgit v1.2.3